From b4b10fd350852e321624d74983cca286091b55a1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 1 Jan 2015 23:30:53 +0000 Subject: py: Put all global state together in state structures. This patch consolidates all global variables in py/ core into one place, in a global structure. Root pointers are all located together to make GC tracing easier and more efficient. --- py/gc.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'py/gc.h') diff --git a/py/gc.h b/py/gc.h index c698c7d21..bb7e2d440 100644 --- a/py/gc.h +++ b/py/gc.h @@ -39,11 +39,6 @@ void gc_lock(void); void gc_unlock(void); bool gc_is_locked(void); -// This variable controls auto garbage collection. If set to 0 then the -// GC won't automatically run when gc_alloc can't find enough blocks. But -// you can still allocate/free memory and also explicitly call gc_collect. -extern uint16_t gc_auto_collect_enabled; - // A given port must implement gc_collect by using the other collect functions. void gc_collect(void); void gc_collect_start(void); -- cgit v1.2.3