diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-06-01 00:15:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 00:15:51 -0700 |
commit | e1b03b0c2b2449a7794f4701bab8b2382eb15116 (patch) | |
tree | 2fc8c9db992a16e110357833baa2afb8ae286e35 /vm_core.h | |
parent | 0d32a18f5b8cb07ef766ac3ae6de6d41c95af43f (diff) |
Enable VM_ASSERT in --jit CIs (#4543)
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1777,7 +1777,7 @@ RUBY_SYMBOL_EXPORT_END #define GET_VM() rb_current_vm() #define GET_RACTOR() rb_current_ractor() #define GET_THREAD() rb_current_thread() -#define GET_EC() rb_current_execution_context() +#define GET_EC() rb_current_execution_context(true) static inline rb_thread_t * rb_ec_thread_ptr(const rb_execution_context_t *ec) @@ -1811,7 +1811,7 @@ rb_ec_vm_ptr(const rb_execution_context_t *ec) } static inline rb_execution_context_t * -rb_current_execution_context(void) +rb_current_execution_context(bool expect_ec) { #ifdef RB_THREAD_LOCAL_SPECIFIER #ifdef __APPLE__ @@ -1822,7 +1822,7 @@ rb_current_execution_context(void) #else rb_execution_context_t *ec = native_tls_get(ruby_current_ec_key); #endif - VM_ASSERT(ec != NULL); + VM_ASSERT(!expect_ec || ec != NULL); return ec; } |