Skip to content

Commit c048ad8

Browse files
committed
fix typos
1 parent cadb1bf commit c048ad8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c/gc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,10 +2212,10 @@ static void add_ephemeron_to_pending(ptr pe) {
22122212
/* We could call check_ephemeron directly here, but the indirection
22132213
through `pending_ephemerons` can dramatically decrease the number
22142214
of times that we have to trigger re-checking, especially since
2215-
check_pending_pehemerons() is run only after all other sweep
2215+
check_pending_ephemerons() is run only after all other sweep
22162216
opportunities are exhausted.
2217-
Guard against adding an empheron to the pending list a second
2218-
time. For example, an emphemeron can get swept twice if it's in
2217+
Guard against adding an ephemeron to the pending list a second
2218+
time. For example, an ephemeron can get swept twice if it's in
22192219
generation 2 and points to an inaccessible generation 0 object;
22202220
sweeping 2->0 will conservatively assume that the target will
22212221
end up in generation 1, which causes sweeping 2->1 to see the

0 commit comments

Comments
 (0)