summaryrefslogtreecommitdiff
path: root/mjit_compile.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-11 08:34:25 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-11 08:34:25 (GMT)
commit6306aa9222ec1b67c5c94811bd2aff5e43ba779e (patch)
treeb981f52a4f7fe4fb9c13afae75675eaa27cdeea5 /mjit_compile.c
parentb2e0d54024766009567baa708ae3bed1f50dd5ed (diff)
mjit.c: exclude mjit_valid_class_serial_p
from mjit.c because it's executed only on MJIT worker thread. Instead of that, `valid_class_serials` is shared with mjit_ prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_compile.c')
-rw-r--r--mjit_compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mjit_compile.c b/mjit_compile.c
index 63d0757..6ac5ec6 100644
--- a/mjit_compile.c
+++ b/mjit_compile.c
@@ -51,6 +51,7 @@ struct case_dispatch_var {
static int
has_valid_method_type(CALL_CACHE cc)
{
+ extern int mjit_valid_class_serial_p(rb_serial_t class_serial);
return GET_GLOBAL_METHOD_STATE() == cc->method_state
&& mjit_valid_class_serial_p(cc->class_serial) && cc->me;
}