diff options
author | Satoshi Tagomori <[email protected]> | 2025-06-15 18:25:33 +0900 |
---|---|---|
committer | Satoshi Tagomori <[email protected]> | 2025-06-17 10:07:53 +0900 |
commit | 50c6bd47ef109a9ab9440a33f2fc275345e7bf7a () | |
tree | ce989ec35fcaafdf519d0a4040c3a52cce0b8ac3 | |
parent | b1410c1c75518a54a2a32e0da2555840258ce228 (diff) |
Update vm->self location and mark it in vm.c for consistency
Notes: Merged: https://.com/ruby/ruby/pull/13630
-rw-r--r-- | gc.c | 1 | ||||
-rw-r--r-- | vm.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -3060,7 +3060,6 @@ rb_gc_mark_roots(void *objspace, const char **categoryp) MARK_CHECKPOINT("vm"); rb_vm_mark(vm); - if (vm->self) gc_mark_internal(vm->self); MARK_CHECKPOINT("end_proc"); rb_mark_end_proc(); @@ -2982,6 +2982,7 @@ rb_vm_update_references(void *ptr) if (ptr) { rb_vm_t *vm = ptr; vm->mark_object_ary = rb_gc_location(vm->mark_object_ary); vm->load_path = rb_gc_location(vm->load_path); vm->load_path_snapshot = rb_gc_location(vm->load_path_snapshot); @@ -3068,6 +3069,8 @@ rb_vm_mark(void *ptr) rb_gc_mark_maybe(*list->varptr); } if (vm->main_namespace) { rb_namespace_entry_mark((void *)vm->main_namespace); } |