aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mjit.c b/mjit.c
index 7c8eb28481..cb84d3cd32 100644
--- a/mjit.c
+++ b/mjit.c
@@ -106,6 +106,20 @@ 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