... | ... | @@ -24,13 +24,11 @@ Scavenging is implemented in the file [rts/sm/Scav.c](/ghc/ghc/tree/master/ghc/r |
|
|
|
|
|
The principle APIs are
|
|
|
|
|
|
<table><tr><th>`void evacuate (StgClosure **p)`</th>
|
|
|
<td>
|
|
|
which evacuates the object pointed to by the pointer at `p`, and updates `p` to point to the new location.
|
|
|
</td></tr></table>
|
|
|
|
|
|
<table><tr><th>`void scavenge_block (bdescr *bd)`</th>
|
|
|
<td>
|
|
|
which scavenges all the objects in the block `bd` (objects between `bd->u.scan` and `bd->free` are assumed to
|
|
|
be unscavenged so far).
|
|
|
</td></tr></table> |
|
|
\ No newline at end of file |
|
|
- **`void evacuate (StgClosure **p)`**
|
|
|
|
|
|
which evacuates the object pointed to by the pointer at `p`, and updates `p` to point to the new location.
|
|
|
|
|
|
- **`void scavenge_block (bdescr *bd)`**
|
|
|
|
|
|
which scavenges all the objects in the block `bd` (objects between `bd->u.scan` and `bd->free` are assumed to
|
|
|
be unscavenged so far). |
|
|
\ No newline at end of file |