mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Drop obsoleted BUILTIN_ATTR_NO_GC attribute
The thing that has used this in the past was very buggy, and we've never revisied it. Let's remove it until we need it again.
This commit is contained in:
parent
1addb3955c
commit
e37a37e696
8 changed files with 11 additions and 25 deletions
|
@ -4924,13 +4924,10 @@ module RubyVM::RJIT
|
|||
|
||||
asm.comment('inlined leaf builtin')
|
||||
|
||||
# Skip this if it doesn't trigger GC
|
||||
if iseq.body.builtin_attrs & C::BUILTIN_ATTR_NO_GC == 0
|
||||
# The callee may allocate, e.g. Integer#abs on a Bignum.
|
||||
# Save SP for GC, save PC for allocation tracing, and prepare
|
||||
# for global invalidation after GC's VM lock contention.
|
||||
jit_prepare_routine_call(jit, ctx, asm)
|
||||
end
|
||||
# The callee may allocate, e.g. Integer#abs on a Bignum.
|
||||
# Save SP for GC, save PC for allocation tracing, and prepare
|
||||
# for global invalidation after GC's VM lock contention.
|
||||
jit_prepare_routine_call(jit, ctx, asm)
|
||||
|
||||
# Call the builtin func (ec, recv, arg1, arg2, ...)
|
||||
asm.mov(C_ARGS[0], EC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue