diff options
author | John Hawthorn <[email protected]> | 2025-05-28 10:11:58 -0700 |
---|---|---|
committer | John Hawthorn <[email protected]> | 2025-06-02 14:57:48 -0400 |
commit | e596cf6e93dbf121e197cccfec8a69902e00eda3 (patch) | |
tree | 802f3019d8b5dd80cf330ed9073f89c5cc13bee1 /gc.c | |
parent | db2cfebff1ae78ec6cbe32d24dcaf236b178f6ca (diff) |
Make FrozenCore a plain T_CLASS
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13458
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1491,7 +1491,10 @@ internal_object_p(VALUE obj) case T_ZOMBIE: break; case T_CLASS: - if (!RBASIC(obj)->klass) break; + if (obj == rb_mRubyVMFrozenCore) + return 1; + + if (!RBASIC_CLASS(obj)) break; if (RCLASS_SINGLETON_P(obj)) { return rb_singleton_class_internal_p(obj); } |