mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
Reorder events in event listener; refactors to mmc and pcc
In GC, request mutators to stop before doing anything else; changes the order of the event listener interface. Also, refactor mmc to look more like pcc.
This commit is contained in:
parent
9f437485ec
commit
6545b34073
11 changed files with 140 additions and 158 deletions
|
@ -412,13 +412,13 @@ gc_heap_pending_ephemerons(struct gc_heap *heap) {
|
|||
static void on_collection_event(GC_EventType event) {
|
||||
switch (event) {
|
||||
case GC_EVENT_START: {
|
||||
HEAP_EVENT(prepare_gc, GC_COLLECTION_MAJOR);
|
||||
HEAP_EVENT(requesting_stop);
|
||||
HEAP_EVENT(waiting_for_stop);
|
||||
break;
|
||||
}
|
||||
case GC_EVENT_MARK_START:
|
||||
HEAP_EVENT(mutators_stopped);
|
||||
HEAP_EVENT(prepare_gc, GC_COLLECTION_MAJOR);
|
||||
break;
|
||||
case GC_EVENT_MARK_END:
|
||||
HEAP_EVENT(roots_traced);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue