aboutsummaryrefslogtreecommitdiff
path: root/py/gc.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-05 20:35:48 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-05 20:35:48 +0100
commit12bab72d93498958ddef26c1a2dd7c69a9f9cf8d (patch)
tree7415b5201b6dca0daf60a9968543b398fab49baa /py/gc.h
parent8123a3339dc7381a079afa90649ce140075eb2e2 (diff)
Improve GC finalisation code; add option to disable it.
Diffstat (limited to 'py/gc.h')
-rw-r--r--py/gc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/gc.h b/py/gc.h
index f8aeb393a..dd6f60dbd 100644
--- a/py/gc.h
+++ b/py/gc.h
@@ -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);