diff options
author | Koichi Sasada <[email protected]> | 2023-03-31 17:33:17 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2023-03-31 18:08:34 +0900 |
commit | 95dafb53cde279c32cfcab9e42ea63e31ea5f861 (patch) | |
tree | d43749a81f44d95bed60f8cfb3021553ae305684 /ractor_core.h | |
parent | 369bdff9ca0d50e845b9623ec2d3e3f14e079248 (diff) |
relax assertion
`ec` can be NULL in future.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7637
Diffstat (limited to 'ractor_core.h')
-rw-r--r-- | ractor_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ractor_core.h b/ractor_core.h index cb57d48c59..e9c9ace3a2 100644 --- a/ractor_core.h +++ b/ractor_core.h @@ -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; } |