diff options
author | Adam Sandberg Ericsson <adam@sandbergericsson.se> | 2022-04-09 07:58:08 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-04-27 10:05:31 -0400 |
commit | 23aad124ff76ad4bb2ba697d4d1e306e7cc595ac (patch) | |
tree | 6721c337483a472cbd998dfbb64e7cb35eb8d554 | |
parent | c7ee0be6bc1573b024f425dcf5fe6d91389e8185 (diff) | |
download | haskell-23aad124ff76ad4bb2ba697d4d1e306e7cc595ac.tar.gz |
rts: state explicitly what evacuate and scavange mean in the copying gc
-rw-r--r-- | rts/sm/Evac.c | 6 | ||||
-rw-r--r-- | rts/sm/Scav.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/rts/sm/Evac.c b/rts/sm/Evac.c index 834df459b4..816b5deba3 100644 --- a/rts/sm/Evac.c +++ b/rts/sm/Evac.c @@ -4,6 +4,9 @@ * * Generational garbage collector: evacuation functions * + * Evacuating is copying (live) objects from a source generation to the target + * generation. + * * Documentation on the architecture of the Garbage Collector can be * found in the online commentary: * @@ -633,7 +636,8 @@ evacuate_compact (StgPtr p) /* ---------------------------------------------------------------------------- Evacuate - This is called (eventually) for every live object in the system. + Copies an object from its current generation to a target generation. This is + called (eventually) for every live object in the system. The caller to evacuate specifies a desired generation in the gct->evac_gen thread-local variable. The following conditions apply to diff --git a/rts/sm/Scav.c b/rts/sm/Scav.c index 69ccea7bc3..3ebcc22d44 100644 --- a/rts/sm/Scav.c +++ b/rts/sm/Scav.c @@ -4,6 +4,10 @@ * * Generational garbage collector: scavenging functions * + * Scavenging means reading already copied (evacuated) objects and evactuating + * any pointers the object holds and updating the pointers to their new + * locations. + * * Documentation on the architecture of the Garbage Collector can be * found in the online commentary: * |