mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
gc.c: mark stress_to_class
* gc.c (gc_mark_roots): stress_to_class is also a GC root. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7615c70db7
commit
b38b920ae5
1 changed files with 2 additions and 0 deletions
2
gc.c
2
gc.c
|
@ -4595,6 +4595,8 @@ gc_mark_roots(rb_objspace_t *objspace, const char **categoryp)
|
|||
MARK_CHECKPOINT("live_method_entries");
|
||||
rb_gc_mark_unlinked_live_method_entries(th->vm);
|
||||
|
||||
if (stress_to_class) rb_gc_mark(stress_to_class);
|
||||
|
||||
MARK_CHECKPOINT("finish");
|
||||
#undef MARK_CHECKPOINT
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue