mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mjit_worker.c: don't use _one for now
I'm planning to use _one later, but it may be doubly registered by switching `stop_worker_p` now and so we should not use _one for now. Otherwise stale job may reject new job registration and copy_cache_from_main_thread may wait forever. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e0a3558668
commit
6c2014768e
1 changed files with 1 additions and 1 deletions
|
@ -1145,7 +1145,7 @@ copy_cache_from_main_thread(struct mjit_copy_job *job)
|
|||
return job->finish_p;
|
||||
}
|
||||
|
||||
if (!rb_postponed_job_register_one(0, mjit_copy_job_handler, (void *)job))
|
||||
if (!rb_postponed_job_register(0, mjit_copy_job_handler, (void *)job))
|
||||
return FALSE;
|
||||
CRITICAL_SECTION_START(3, "in MJIT copy job wait");
|
||||
/* checking `stop_worker_p` too because `RUBY_VM_CHECK_INTS(ec)` may not
|
||||
|
|
Loading…
Add table
Reference in a new issue