ruby-changes:53775
From: k0kubun <ko1@a...>
Date: Mon, 26 Nov 2018 21:50:47 +0900 (JST)
Subject: [ruby-changes:53775] k0kubun:r65993 (trunk): mjit_worker.c: disable running copy job
k0kubun 2018-11-26 21:50:42 +0900 (Mon, 26 Nov 2018) New Revision: 65993 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65993 Log: mjit_worker.c: disable running copy job after MJIT worker stop. r65928 didn't fix the SEGV. This commit hopes to fix http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/1478576 Modified files: trunk/mjit_worker.c Index: mjit_worker.c =================================================================== --- mjit_worker.c (revision 65992) +++ mjit_worker.c (revision 65993) @@ -1238,6 +1238,10 @@ mjit_worker(void) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L1238 } } + /* Disable dispatching this job in mjit_copy_job_handler while memory allocated by alloca + could be expired after finishing this function. */ + job.finish_p = TRUE; + /* To keep mutex unlocked when it is destroyed by mjit_finish, don't wrap CRITICAL_SECTION here. */ worker_stopped = TRUE; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/