mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
Improve GC finalisation code; add option to disable it.
This commit is contained in:
3
py/gc.h
3
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);
|
||||
|
||||
Reference in New Issue
Block a user