summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2022-11-01 12:31:24 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2022-11-01 15:38:44 -0700
commit70173a72a29474b6fd8fdc629954a95a4b0a3793 (patch)
treec0e61b2055270685b5e35d35f1b126e1e38481e1 /misc
parent0d1e1987d1ca90cf2d2374f576be2633c52a66f4 (diff)
Ivar copy needs to happen _before_ setting the shape
When we copy instance variables, it is possible for the GC to be kicked off. The GC looks at the shape to determine what slots to mark inside the object. If the shape is set too soon, the GC could think that there are more instance variables on the object than there actually are at that moment.
Diffstat (limited to 'misc')
-rw-r--r--misc/lldb_rb/rb_base_command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/lldb_rb/rb_base_command.py b/misc/lldb_rb/rb_base_command.py
index bf98b67612..de90a1617c 100644
--- a/misc/lldb_rb/rb_base_command.py
+++ b/misc/lldb_rb/rb_base_command.py
@@ -19,8 +19,8 @@ class RbBaseCommand:
imemo_types = target.FindFirstType("enum imemo_type")
- for member in imemo_types.GetEnumMembers():
- g[member.GetName()] = member.GetValueAsUnsigned()
+ #for member in imemo_types.GetEnumMembers():
+ # g[member.GetName()] = member.GetValueAsUnsigned()
for enum in target.FindFirstGlobalVariable("ruby_dummy_gdb_enums"):
enum = enum.GetType()