summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-26 12:50:42 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-26 12:50:42 +0000
commita3bb9f1093323f8f36849882f1d536b77563149a (patch)
tree5284b792a4d6169582cf531073b6ef8e2a68d2a3 /mjit_worker.c
parentaf6adb9982b93d3e960bc6fe6fa37d01b8f9f130 (diff)
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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index 4b70c0b..5090f86 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -1238,6 +1238,10 @@ mjit_worker(void)
}
}
+ /* 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;
}