Skip to content

Commit fabc519

Browse files
authored
gc: remove over-eager assertion (#50540)
Fixes #50451. Fortunately, this wasn't anything more than an unnecessary assertion.
2 parents 5a922fa + f4f1ecf commit fabc519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ static int get_intersect_visitor(jl_typemap_entry_t *oldentry, struct typemap_in
14831483
struct matches_env *closure = container_of(closure0, struct matches_env, match);
14841484
assert(oldentry != closure->newentry && "entry already added");
14851485
assert(oldentry->min_world <= closure->newentry->min_world && "old method cannot be newer than new method");
1486-
assert(oldentry->max_world == ~(size_t)0 && "method cannot be added at the same time as method deleted");
1486+
assert(oldentry->max_world != closure->newentry->min_world && "method cannot be added at the same time as method deleted");
14871487
// don't need to consider other similar methods if this oldentry will always fully intersect with them and dominates all of them
14881488
typemap_slurp_search(oldentry, &closure->match);
14891489
jl_method_t *oldmethod = oldentry->func.method;

0 commit comments

Comments
 (0)