mirror of
https://github.com/janet-lang/janet
synced 2025-01-22 13:16:52 +00:00
Remove remains of gc instrumentation code.
This commit is contained in:
parent
e6e9bd8147
commit
e85809a98a
@ -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);
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user