1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-08 22:50:27 +02:00
guile/ephemerons-types.h
Andy Wingo 78da8d5811 Add ephemeron implementation
This commit adds support for ephemerons to the API and wires it into the
collectors.  It also adds a new test.
2023-01-23 20:56:25 +01:00

21 lines
400 B
C

#ifndef EPHEMERONS_TYPES_H
#define EPHEMERONS_TYPES_H
#define FOR_EACH_HEAP_OBJECT_KIND(M) \
M(box, Box, BOX) \
M(ephemeron, Ephemeron, EPHEMERON) \
M(small_object, SmallObject, SMALL_OBJECT)
#include "heap-objects.h"
#include "simple-tagging-scheme.h"
struct SmallObject {
struct gc_header header;
};
struct Box {
struct gc_header header;
void *obj;
};
#endif // EPHEMERONS_TYPES_H