Improve GC finalisation code; add option to disable it.

This commit is contained in:
Damien George
2014-04-05 20:35:48 +01:00
parent 8123a3339d
commit 12bab72d93
12 changed files with 135 additions and 58 deletions

View File

@@ -3,8 +3,7 @@ void gc_collect_start(void);
void gc_collect_root(void **ptrs, machine_uint_t len);
void gc_collect_end(void);
void gc_collect(void);
void *gc_alloc(machine_uint_t n_bytes);
void *gc_alloc_mp_obj(machine_uint_t n_bytes);
void *gc_alloc(machine_uint_t n_bytes, bool has_finaliser);
void gc_free(void *ptr);
machine_uint_t gc_nbytes(void *ptr);
void *gc_realloc(void *ptr, machine_uint_t n_bytes);