diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-18 23:42:58 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-18 23:42:58 -0700 |
commit | c4e2718763e1ab2d00f43b0797b4852b5ccf28c8 (patch) | |
tree | f2091e8a9e13c76c1fc4291ed6f7aa378bc56e03 /lib/ruby_vm | |
parent | 32e0c97dfaa7973032e6ab93260be8eb4ad1458a (diff) |
RJIT: Workaround USE_RVARGC=0 CI
Diffstat (limited to 'lib/ruby_vm')
-rw-r--r-- | lib/ruby_vm/rjit/insn_compiler.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ruby_vm/rjit/insn_compiler.rb b/lib/ruby_vm/rjit/insn_compiler.rb index bbfc8c3d0a..f860eb1c71 100644 --- a/lib/ruby_vm/rjit/insn_compiler.rb +++ b/lib/ruby_vm/rjit/insn_compiler.rb @@ -2734,7 +2734,8 @@ module RubyVM::RJIT # @param asm [RubyVM::RJIT::Assembler] def jit_rb_str_empty_p(jit, ctx, asm, argc, known_recv_class) # Assume same offset to len embedded or not so we can use one code path to read the length - assert_equal(C.RString.offsetof(:as, :heap, :len), C.RString.offsetof(:as, :embed, :len)) + #assert_equal(C.RString.offsetof(:as, :heap, :len), C.RString.offsetof(:as, :embed, :len)) + # `C.RString.offsetof(:as, :embed, :len)` doesn't work because of USE_RVARGC=0 CI recv_opnd = ctx.stack_pop(1) out_opnd = ctx.stack_push |