Skip to content

Commit

Permalink
Fix obj_free candidate list
Browse files Browse the repository at this point in the history
imemo_callinfo is an obj_free candidate.

imemo_ast is deprecated.
  • Loading branch information
wks committed Dec 5, 2024
1 parent 3888446 commit abce8f0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mmtk_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,14 @@ rb_mmtk_is_initial_obj_free_candidate(VALUE obj)
return true;
case T_IMEMO:
switch (imemo_type(obj)) {
case imemo_ment:
case imemo_iseq:
case imemo_ast:
rb_bug("imemo_ast is obsolete");
UNREACHABLE;
case imemo_callinfo:
case imemo_env:
case imemo_iseq:
case imemo_ment:
case imemo_tmpbuf:
case imemo_ast:
// These imemos need obj_free.
return true;
default:
Expand Down

0 comments on commit abce8f0

Please sign in to comment.