summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Valentine-House <[email protected]>2025-04-01 15:57:55 +0100
committerMatt Valentine-House <[email protected]>2025-04-01 21:45:08 +0100
commite4020133c88b358d4392d29058043cc5dbdb195b (patch)
treefd4185347e83799eb39b2b5e44cb291ab65dfec6
parent6fbc32b5d0da31535cccc0eca1853273313a0b52 (diff)
Remove incorrect assertion
ractor_cache will always be NULL in this context
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13031
-rw-r--r--gc/mmtk/mmtk.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gc/mmtk/mmtk.c b/gc/mmtk/mmtk.c
index 93d50fe729..d14b6d26b3 100644
--- a/gc/mmtk/mmtk.c
+++ b/gc/mmtk/mmtk.c
@@ -191,9 +191,7 @@ static void
rb_mmtk_get_mutators(void (*visit_mutator)(MMTk_Mutator *mutator, void *data), void *data)
{
struct objspace *objspace = rb_gc_get_objspace();
-
struct MMTk_ractor_cache *ractor_cache;
- RUBY_ASSERT(ractor_cache != NULL);
ccan_list_for_each(&objspace->ractor_caches, ractor_cache, list_node) {
visit_mutator(ractor_cache->mutator, data);