diff options
author | Takashi Kokubun <[email protected]> | 2023-03-12 13:31:00 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-12 13:31:15 -0700 |
commit | bbd9221e46649cc0d620efe4542bb93ff89fcb47 (patch) | |
tree | 6c32bae55e3b1184769ddd94d877a2ca233a6758 | |
parent | 7ce4b716bdb5bcfc8b30ffcd034ce7aded1f72b9 (diff) |
RJIT: Give up freezing InsnCompiler
for memoization
-rw-r--r-- | lib/ruby_vm/rjit/exit_compiler.rb | 2 | ||||
-rw-r--r-- | lib/ruby_vm/rjit/insn_compiler.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/ruby_vm/rjit/exit_compiler.rb b/lib/ruby_vm/rjit/exit_compiler.rb index 59df9b564c..c082cc3660 100644 --- a/lib/ruby_vm/rjit/exit_compiler.rb +++ b/lib/ruby_vm/rjit/exit_compiler.rb @@ -1,5 +1,7 @@ module RubyVM::RJIT class ExitCompiler + def initialize = freeze + # Used for invalidating a block on entry. # @param pc [Integer] # @param asm [RubyVM::RJIT::Assembler] diff --git a/lib/ruby_vm/rjit/insn_compiler.rb b/lib/ruby_vm/rjit/insn_compiler.rb index 02e418e8de..5afcc173fd 100644 --- a/lib/ruby_vm/rjit/insn_compiler.rb +++ b/lib/ruby_vm/rjit/insn_compiler.rb @@ -8,7 +8,6 @@ module RubyVM::RJIT @cfunc_codegen_table = {} register_cfunc_codegen_funcs - # freeze # workaround a binding.irb issue. TODO: resurrect this end # @param jit [RubyVM::RJIT::JITState] |