mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 05:30:21 +02:00
Add allocation counter to prepare_gc event
Adapt all users
This commit is contained in:
parent
f5edbc278b
commit
8a157bc616
9 changed files with 21 additions and 12 deletions
|
@ -792,7 +792,7 @@ collect(struct gc_mutator *mut, enum gc_collection_kind requested_kind) {
|
|||
enum gc_collection_kind gc_kind =
|
||||
determine_collection_kind(heap, requested_kind);
|
||||
int is_minor = gc_kind == GC_COLLECTION_MINOR;
|
||||
HEAP_EVENT(heap, prepare_gc, gc_kind);
|
||||
HEAP_EVENT(heap, prepare_gc, gc_kind, heap->total_allocated_bytes_at_last_gc);
|
||||
nofl_space_prepare_gc(nofl_space, gc_kind);
|
||||
large_object_space_start_gc(lospace, is_minor);
|
||||
gc_extern_space_start_gc(exspace, is_minor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue