diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2021-03-30 13:34:14 +0100 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2021-05-06 09:18:17 -0400 |
commit | 8bbd3198068f5e8335ab01f0b29cdae225b25b5b (patch) | |
tree | 6c6a0fc987a11c5ba84a541ef0055d1f5a67f491 /ext/objspace | |
parent | ddc29e29890f7f1b29effb84929e6856e45632ee (diff) |
Allow newobj_of0 and newobj_slowpath to allocate into multiple heap slots
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4391
Diffstat (limited to 'ext/objspace')
-rw-r--r-- | ext/objspace/objspace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index 7afdfc1f6b..2784a88e85 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -66,6 +66,7 @@ total_i(VALUE v, void *ptr) case T_IMEMO: case T_ICLASS: case T_NODE: + case T_PAYLOAD: case T_ZOMBIE: return; default: @@ -224,6 +225,7 @@ type2sym(enum ruby_value_type i) CASE_TYPE(T_ICLASS); CASE_TYPE(T_MOVED); CASE_TYPE(T_ZOMBIE); + CASE_TYPE(T_PAYLOAD); #undef CASE_TYPE default: rb_bug("type2sym: unknown type (%d)", i); } |