mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
Change gc_allocate_ephemeron to return struct gc_ephemeron
This commit is contained in:
parent
db36c48efd
commit
dc013cfb58
5 changed files with 10 additions and 11 deletions
|
@ -131,9 +131,8 @@ void gc_write_barrier_extern(struct gc_ref obj, size_t obj_size,
|
|||
|
||||
static int ephemeron_gc_kind;
|
||||
|
||||
struct gc_ref gc_allocate_ephemeron(struct gc_mutator *mut) {
|
||||
void *ret = GC_generic_malloc(gc_ephemeron_size(), ephemeron_gc_kind);
|
||||
return gc_ref_from_heap_object(ret);
|
||||
struct gc_ephemeron* gc_allocate_ephemeron(struct gc_mutator *mut) {
|
||||
return GC_generic_malloc(gc_ephemeron_size(), ephemeron_gc_kind);
|
||||
}
|
||||
|
||||
unsigned gc_heap_ephemeron_trace_epoch(struct gc_heap *heap) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue