[ruby-cvs:72412] k0kubun:r65312 (trunk): mjit.c: prevent from accessing expired job
k0kubun at ruby-lang.org
k0kubun at ruby-lang.org
Tue Oct 23 09:09:10 JST 2018
k0kubun 2018-10-23 09:09:10 +0900 (Tue, 23 Oct 2018)
New Revision: 65312
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65312
Log:
mjit.c: prevent from accessing expired job
Given that `copy_cache_from_main_thread()` breaks the loop when `stop_worker_p`
is TRUE, memory of `job` allocated by `alloca` may be invalid if `stop_worker_p`
is already TRUE.
mjit_worker.c: explain why `copy_cache_from_main_thread()` should not
stop checking `stop_worker_p`.
Modified files:
trunk/mjit.c
trunk/mjit_worker.c
More information about the ruby-cvs
mailing list