summaryrefslogtreecommitdiff
path: root/jit.c
diff options
context:
space:
mode:
Diffstat (limited to 'jit.c')
-rw-r--r--jit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/jit.c b/jit.c
index a5e90f29fd..0709c6d8f0 100644
--- a/jit.c
+++ b/jit.c
@@ -484,3 +484,11 @@ rb_jit_vm_lock_then_barrier(unsigned int *recursive_lock_level, const char *file
rb_vm_lock_enter(recursive_lock_level, file, line);
rb_vm_barrier();
}
+
+// Release the VM lock. The lock level must point to the same integer used to
+// acquire the lock.
+void
+rb_jit_vm_unlock(unsigned int *recursive_lock_level, const char *file, int line)
+{
+ rb_vm_lock_leave(recursive_lock_level, file, line);
+}