Skip to content

Commit

Permalink
typos in ephemeron-related comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gasche committed Jan 5, 2025
1 parent d236751 commit e8d4798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions runtime/caml/weak.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ struct caml_ephe_info {
value todo;
/* These are ephemerons which need to be marked and swept in the current
cycle. If the ephemeron is alive, after marking, they go into the live
list after cleaning them off the unreachable keys and releasing the data
list after cleaning off the unreachable keys and releasing the data
if any of the keys are unreachable. */

value live;
/* These are ephemerons are alive (marked). The keys of these ephemerons may
be unmarked if these ephemerons were the target of a blit operation. The
data field is never unmarked. */
/* These are ephemerons which are alive (marked). The keys of these ephemerons
may be unmarked if these ephemerons were the target of a blit operation.
The data field is never unmarked. */

int must_sweep_ephe;
/* At the beginning of [Phase_sweep_ephe] the [live] list is moved to the
Expand Down
2 changes: 1 addition & 1 deletion runtime/weak.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ CAMLprim value caml_weak_create (value len)
Specificity of the cleaning phase (Phase_clean):
The dead keys must be removed from the ephemerons and data removed
when one the keys is dead. Here we call it cleaning the ephemerons.
when one of the keys is dead. Here we call it cleaning the ephemerons.
A specific phase of the GC is dedicated to this, Phase_clean. This
phase is just after the mark phase, so the white values are dead
values. It iterates the function caml_ephe_clean through all the
Expand Down

0 comments on commit e8d4798

Please sign in to comment.