relax assertion

`ec` can be NULL in future.
This commit is contained in:
Koichi Sasada 2023-03-31 17:33:17 +09:00
parent 369bdff9ca
commit 95dafb53cd
Notes: git 2023-03-31 09:08:57 +00:00

View File

@ -318,7 +318,7 @@ rb_ractor_set_current_ec_(rb_ractor_t *cr, rb_execution_context_t *ec, const cha
native_tls_set(ruby_current_ec_key, ec);
#endif
RUBY_DEBUG_LOG2(file, line, "ec:%p->%p", (void *)cr->threads.running_ec, (void *)ec);
VM_ASSERT(cr->threads.running_ec != ec);
VM_ASSERT(ec == NULL || cr->threads.running_ec != ec);
cr->threads.running_ec = ec;
}