mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-27 21:40:34 +02:00
Add gc_collect(mutator) API
This commit is contained in:
parent
1b3bc2f3b5
commit
44f37a373c
4 changed files with 11 additions and 1 deletions
|
@ -1992,6 +1992,10 @@ static void trigger_collection(struct gc_mutator *mut) {
|
|||
heap_unlock(heap);
|
||||
}
|
||||
|
||||
void gc_collect(struct gc_mutator *mut) {
|
||||
trigger_collection(mut);
|
||||
}
|
||||
|
||||
void* gc_allocate_large(struct gc_mutator *mut, size_t size) {
|
||||
struct gc_heap *heap = mutator_heap(mut);
|
||||
struct large_object_space *space = heap_large_object_space(heap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue