diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2023-02-17 15:51:16 +0000 |
---|---|---|
committer | Matt Valentine-House <matt@eightbitraptor.com> | 2023-04-06 11:07:16 +0100 |
commit | 026321c5b976c5e95731046b94555b1226198be4 (patch) | |
tree | 35ba000a654e41ede4ccb9a30322f08b748cb2f7 /gc.c | |
parent | 879cda98a4cdce91d736ea9ba81168effe090718 (diff) | |
download | ruby-026321c5b976c5e95731046b94555b1226198be4.tar.gz |
[Feature #19474] Refactor NEWOBJ macros
NEWOBJ_OF is now our canonical newobj macro. It takes an optional ec
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -2909,14 +2909,7 @@ rb_wb_unprotected_newobj_of(VALUE klass, VALUE flags, size_t size) } VALUE -rb_wb_protected_newobj_of(VALUE klass, VALUE flags, size_t size) -{ - GC_ASSERT((flags & FL_WB_PROTECTED) == 0); - return newobj_of(GET_RACTOR(), klass, flags, 0, 0, 0, TRUE, size); -} - -VALUE -rb_ec_wb_protected_newobj_of(rb_execution_context_t *ec, VALUE klass, VALUE flags, size_t size) +rb_wb_protected_newobj_of(rb_execution_context_t *ec, VALUE klass, VALUE flags, size_t size) { GC_ASSERT((flags & FL_WB_PROTECTED) == 0); return newobj_of(rb_ec_ractor_ptr(ec), klass, flags, 0, 0, 0, TRUE, size); |