diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-05 20:35:48 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-05 20:35:48 +0100 |
commit | 12bab72d93498958ddef26c1a2dd7c69a9f9cf8d (patch) | |
tree | 7415b5201b6dca0daf60a9968543b398fab49baa /py/gc.h | |
parent | 8123a3339dc7381a079afa90649ce140075eb2e2 (diff) |
Improve GC finalisation code; add option to disable it.
Diffstat (limited to 'py/gc.h')
-rw-r--r-- | py/gc.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |