diff options
Diffstat (limited to 'sample/iseq_loader.rb')
-rw-r--r-- | sample/iseq_loader.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sample/iseq_loader.rb b/sample/iseq_loader.rb index 6c6a67d3c8..2fd9184a7d 100644 --- a/sample/iseq_loader.rb +++ b/sample/iseq_loader.rb @@ -70,7 +70,10 @@ class RubyVM::InstructionSequence $ISEQ_LOADER_LOADED += 1 STDERR.puts "[ISEQ_LOADER] #{Process.pid} load #{fname} from #{iseq_key}" if COMPILE_DEBUG binary = read_compiled_iseq(fname, iseq_key) - RubyVM::InstructionSequence.from_binary_format(binary) + iseq = RubyVM::InstructionSequence.from_binary_format(binary) + # p [extra_data(iseq.path), RubyVM::InstructionSequence.from_binary_format_extra_data(binary)] + # raise unless extra_data(iseq.path) == RubyVM::InstructionSequence.from_binary_format_extra_data(binary) + iseq elsif COMPILE_IF_NOT_COMPILED compile_and_save_iseq(fname, iseq_key) else |