aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-30 03:56:29 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-30 03:56:29 +0000
commiteb38fb670bb74522f253cca440bccfd8d8d63c3c (patch)
treedce0e338bae7264c9fbeeb610b7a484f14326be9 /mjit.c
parentd7e4e50bdb9478c3e60ae855abcf2596991c976b (diff)
downloadruby-eb38fb670bb74522f253cca440bccfd8d8d63c3c.tar.gz
vm_trace.c: workqueue as thread-safe version of postponed_job
postponed_job is safe to use in signal handlers, but is not thread-safe for MJIT. Implement a workqueue for MJIT thread-safety. [Bug #15316] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/mjit.c b/mjit.c
index 46223af492..1f9140b7a8 100644
--- a/mjit.c
+++ b/mjit.c
@@ -106,20 +106,6 @@ mjit_gc_finish_hook(void)
CRITICAL_SECTION_FINISH(4, "mjit_gc_finish_hook");
}
-/* Wrap critical section to prevent [Bug #15316] */
-void
-mjit_postponed_job_register_start_hook(void)
-{
- CRITICAL_SECTION_START(4, "mjit_postponed_job_register_start_hook");
-}
-
-/* Unwrap critical section of mjit_postponed_job_register_start_hook() */
-void
-mjit_postponed_job_register_finish_hook(void)
-{
- CRITICAL_SECTION_FINISH(4, "mjit_postponed_job_register_finish_hook");
-}
-
/* Iseqs can be garbage collected. This function should call when it
happens. It removes iseq from the unit. */
void