mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
Redo compilation of all ISEQs after invalidation
This commit is contained in:
parent
b379ccf755
commit
1bdc23f35b
5 changed files with 58 additions and 2 deletions
|
@ -33,6 +33,12 @@ module RubyVM::MJIT
|
|||
attr_accessor :write_pos
|
||||
|
||||
IseqBlocks = Hash.new { |h, k| h[k] = {} }
|
||||
DeadBlocks = [] # invalidated IseqBlocks, but kept for safety
|
||||
|
||||
def self.reset_blocks
|
||||
DeadBlocks << IseqBlocks.dup
|
||||
IseqBlocks.clear
|
||||
end
|
||||
|
||||
def self.decode_insn(encoded)
|
||||
INSNS.fetch(C.rb_vm_insn_decode(encoded))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue