diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-11 14:20:25 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-11 14:20:25 +0000 |
commit | c1034574aa7e6f47843b5533411c75d8196b29d8 (patch) | |
tree | a61969cdbaff9194f0c3f7a28eec2b313d7be006 /compile.c | |
parent | ea15ceddbef2cc4c459c1ad5796e43ae9fa2cbf1 (diff) |
merge revision(s) 64514: [Backport #14702]
check trace flags at loading [Bug #14702]
* iseq.c (iseq_init_trace): at ISeq loading time, we need to check
`ruby_vm_event_enabled_flags` to turn on trace instructions.
Seprate this checking code from `finish_iseq_build()` and make
new function. `iseq_ibf_load()` calls this funcation after loading.
* test/ruby/test_iseq.rb: add a test for this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@64997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -9511,6 +9511,8 @@ iseq_ibf_load(VALUE str) ibf_load_setup(load, loader_obj, str); iseq = ibf_load_iseq(load, 0); + iseq_init_trace(iseq); + RB_GC_GUARD(loader_obj); return iseq; } |