Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerrg committed Aug 25, 2023
1 parent cadb1bf commit c048ad8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions c/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2212,10 +2212,10 @@ static void add_ephemeron_to_pending(ptr pe) {
/* We could call check_ephemeron directly here, but the indirection
through `pending_ephemerons` can dramatically decrease the number
of times that we have to trigger re-checking, especially since
check_pending_pehemerons() is run only after all other sweep
check_pending_ephemerons() is run only after all other sweep
opportunities are exhausted.
Guard against adding an empheron to the pending list a second
time. For example, an emphemeron can get swept twice if it's in
Guard against adding an ephemeron to the pending list a second
time. For example, an ephemeron can get swept twice if it's in
generation 2 and points to an inaccessible generation 0 object;
sweeping 2->0 will conservatively assume that the target will
end up in generation 1, which causes sweeping 2->1 to see the
Expand Down

0 comments on commit c048ad8

Please sign in to comment.