[gjs/ewlsh/fix-barried-get-in-rooting] Use unbarried get after potential garbage collection
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/ewlsh/fix-barried-get-in-rooting] Use unbarried get after potential garbage collection
- Date: Sun, 25 Jul 2021 12:02:24 +0000 (UTC)
commit 464adf6f780edc48c0dff264135a20c54972be37
Author: Evan Welsh <contact evanwelsh com>
Date: Sun Jul 25 05:02:04 2021 -0700
Use unbarried get after potential garbage collection
gjs/jsapi-util-root.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gjs/jsapi-util-root.h b/gjs/jsapi-util-root.h
index 5433a09b..cf6369a7 100644
--- a/gjs/jsapi-util-root.h
+++ b/gjs/jsapi-util-root.h
@@ -276,7 +276,7 @@ class GjsMaybeOwned {
/* Prevent the thing from being garbage collected while it is in neither
* m_heap nor m_root */
- JS::Rooted<T> thing(cx, m_heap);
+ JS::Rooted<T> thing(cx, m_heap.unbarrieredGet());
reset();
root(cx, thing, notify, data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]