[ruby-cvs:70825] k0kubun:r63734 (trunk): mjit.c: disable calling JIT-ed code

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Sat Jun 23 23:11:19 JST 2018


k0kubun	2018-06-23 23:11:19 +0900 (Sat, 23 Jun 2018)

  New Revision: 63734

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63734

  Log:
    mjit.c: disable calling JIT-ed code
    
    when TracePoint is enabled. We're cancelling JIT-ed code execution AFTER
    each instruction, but there is no guard before the first insn of method.
    
    To prevent spoiling performance, I don't want to modify the JIT-ed code
    to fix this. So this commit replaces `mjit_enabled` check with `mjit_call_p`
    check.

  Modified files:
    trunk/iseq.c
    trunk/mjit.c
    trunk/mjit.h
    trunk/vm_trace.c


More information about the ruby-cvs mailing list