1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-22 21:26:51 +00:00

Remove remains of gc instrumentation code.

This commit is contained in:
Calvin Rose 2023-09-24 10:11:24 -07:00
parent e6e9bd8147
commit e85809a98a
2 changed files with 1 additions and 2 deletions

View File

@ -549,7 +549,6 @@ void janet_clear_memory(void) {
#endif
JanetGCObject *current = janet_vm.blocks;
while (NULL != current) {
current->flags |= JANET_MEM_USEAFTERFREE;
janet_deinit_block(current);
JanetGCObject *next = current->data.next;
gc_free_gcobj(current);

View File

@ -38,7 +38,7 @@
#define janet_gc_settype(m, t) ((janet_gc_header(m)->flags |= (0xFF & (t))))
#define janet_gc_type(m) (janet_gc_header(m)->flags & 0xFF)
#define janet_gc_mark(m) do (janet_gc_header(m)->flags |= JANET_MEM_REACHABLE)
#define janet_gc_mark(m) (janet_gc_header(m)->flags |= JANET_MEM_REACHABLE)
#define janet_gc_reachable(m) (janet_gc_header(m)->flags & JANET_MEM_REACHABLE)
/* Memory types for the GC. Different from JanetType to include funcenv and funcdef. */