File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3060,7 +3060,6 @@ rb_gc_mark_roots(void *objspace, const char **categoryp)
3060
3060
3061
3061
MARK_CHECKPOINT ("vm" );
3062
3062
rb_vm_mark (vm );
3063
- if (vm -> self ) gc_mark_internal (vm -> self );
3064
3063
3065
3064
MARK_CHECKPOINT ("end_proc" );
3066
3065
rb_mark_end_proc ();
Original file line number Diff line number Diff line change @@ -2982,6 +2982,7 @@ rb_vm_update_references(void *ptr)
2982
2982
if (ptr ) {
2983
2983
rb_vm_t * vm = ptr ;
2984
2984
2985
+ vm -> self = rb_gc_location (vm -> self );
2985
2986
vm -> mark_object_ary = rb_gc_location (vm -> mark_object_ary );
2986
2987
vm -> load_path = rb_gc_location (vm -> load_path );
2987
2988
vm -> load_path_snapshot = rb_gc_location (vm -> load_path_snapshot );
@@ -3068,6 +3069,8 @@ rb_vm_mark(void *ptr)
3068
3069
rb_gc_mark_maybe (* list -> varptr );
3069
3070
}
3070
3071
3072
+ rb_gc_mark_movable (vm -> self );
3073
+
3071
3074
if (vm -> main_namespace ) {
3072
3075
rb_namespace_entry_mark ((void * )vm -> main_namespace );
3073
3076
}
You can’t perform that action at this time.
0 commit comments