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:
nobu 2016-03-18 07:37:07 +00:00
parent 7a3cc69779
commit 764f39210b

2
gc.c
View File

@ -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) {
rb_thread_t *th = GET_THREAD();
if (th) {
gc_finalize_deferred_register(rb_objspace_of(th->vm));
gc_finalize_deferred_register(objspace);
}
}