[ruby-cvs:71377] k0kubun:r64285 (trunk): mjit_worker.c: carve out worker-related code

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Sat Aug 11 16:57:58 JST 2018


k0kubun	2018-08-11 16:57:58 +0900 (Sat, 11 Aug 2018)

  New Revision: 64285

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

  Log:
    mjit_worker.c: carve out worker-related code
    
    The motivation of this change is to make sure rb_funcall or GC-related
    functions are not called on worker-related code. Currently such
    functions are used in some places and I believe it's partly because it's
    hard to identify which part is called on MJIT worker thread.
    
    Now, mjit.c is safe to use them but we know we need to safely deal with
    mjit_compile.c, mjit_worker.c and mjit_internal.h.
    
    mjit_compile.c: update the comment about it

  Added files:
    trunk/mjit_internal.h
    trunk/mjit_worker.c
  Modified files:
    trunk/common.mk
    trunk/mjit.c
    trunk/mjit.h
    trunk/mjit_compile.c


More information about the ruby-cvs mailing list