summaryrefslogtreecommitdiff
path: root/mjit_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'mjit_compile.c')
-rw-r--r--mjit_compile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mjit_compile.c b/mjit_compile.c
index 63a24837fe..63d0757877 100644
--- a/mjit_compile.c
+++ b/mjit_compile.c
@@ -6,6 +6,10 @@
**********************************************************************/
+/* NOTE: All functions in this file are executed on MJIT worker. So don't
+ call Ruby methods (C functions that may call rb_funcall) or trigger
+ GC (using xmalloc, ZALLOC, etc.) in this file. */
+
#include "internal.h"
#include "vm_core.h"
#include "vm_exec.h"