From 9e7f8743c2725c1818033e348e8d542ec7539045 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sun, 12 Jan 2020 23:32:51 -0500 Subject: fix CCCD bonding store; avoid excessive bonding writes --- py/gc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/gc.h') diff --git a/py/gc.h b/py/gc.h index cd63ba94c..2a0811f4e 100644 --- a/py/gc.h +++ b/py/gc.h @@ -58,6 +58,8 @@ void gc_collect_ptr(void *ptr); void gc_collect_root(void **ptrs, size_t len); void gc_collect_end(void); +// Is the gc heap available? +bool gc_alloc_possible(void); void *gc_alloc(size_t n_bytes, bool has_finaliser, bool long_lived); // Use this function to sweep the whole heap and run all finalisers -- cgit v1.2.3