mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
Implement per-object pinning API
Fixes https://github.com/wingo/whippet/issues/6.
This commit is contained in:
parent
a722b9c13f
commit
9f26dbb1fc
13 changed files with 81 additions and 5 deletions
|
@ -127,6 +127,10 @@ void* gc_allocate_pointerless(struct gc_mutator *mut,
|
|||
return GC_malloc_atomic(size);
|
||||
}
|
||||
|
||||
void gc_pin_object(struct gc_mutator *mut, struct gc_ref ref) {
|
||||
// Nothing to do.
|
||||
}
|
||||
|
||||
void gc_collect(struct gc_mutator *mut,
|
||||
enum gc_collection_kind requested_kind) {
|
||||
switch (requested_kind) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue