gc.c: fix r54115
* gc.c (gc_page_sweep): use the argument objspace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7a3cc69779
commit
764f39210b
2
gc.c
2
gc.c
@ -3453,7 +3453,7 @@ gc_page_sweep(rb_objspace_t *objspace, rb_heap_t *heap, struct heap_page *sweep_
|
|||||||
if (heap_pages_deferred_final && !finalizing) {
|
if (heap_pages_deferred_final && !finalizing) {
|
||||||
rb_thread_t *th = GET_THREAD();
|
rb_thread_t *th = GET_THREAD();
|
||||||
if (th) {
|
if (th) {
|
||||||
gc_finalize_deferred_register(rb_objspace_of(th->vm));
|
gc_finalize_deferred_register(objspace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user