[ruby-cvs:71128] k0kubun:r64037 (trunk): mjit.c: handle memory allocation failure

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Wed Jul 25 00:40:06 JST 2018


k0kubun	2018-07-25 00:40:05 +0900 (Wed, 25 Jul 2018)

  New Revision: 64037

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

  Log:
    mjit.c: handle memory allocation failure
    
    which was missing in r64033.
    
    Prior to r64033, memory allocation failure had been checked by
    TRY_WITH_GC and handled by rb_memerror. But calling rb_memerror on MJIT
    worker is problematic since it does EC_JUMP_TAG in the end. Threads
    except Ruby's main thread must not use it.
    
    mjit_compile.c: ditto

  Modified files:
    trunk/mjit.c
    trunk/mjit_compile.c


More information about the ruby-cvs mailing list