Skip to content
  • John Hawthorn's avatar
    c18edc5b
    Avoid underflow of rb_yjit_live_iseq_count · c18edc5b
    John Hawthorn authored
    This value is only incremented when rb_iseq_translate_threaded_code is
    called, which doesn't happen for iseqs which result in a syntax error.
    
    This is easy to hit by running a debug build with RUBY_FREE_AT_EXIT=1,
    but any build and options could underflow this value by running enough
    evals.
    c18edc5b
    Avoid underflow of rb_yjit_live_iseq_count
    John Hawthorn authored
    This value is only incremented when rb_iseq_translate_threaded_code is
    called, which doesn't happen for iseqs which result in a syntax error.
    
    This is easy to hit by running a debug build with RUBY_FREE_AT_EXIT=1,
    but any build and options could underflow this value by running enough
    evals.
Loading