aboutsummaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorAyke van Laethem <aykevanlaethem@gmail.com>2018-02-15 17:22:34 +0100
committerDamien George <damien.p.george@gmail.com>2018-02-19 16:05:46 +1100
commit736faef2233fe9c721b940a108b28808d4c7f7a0 (patch)
treedf7265ddf3c0675511873cc7673bead736e9fb36 /py/mpstate.h
parent5c9e5618e088ddc233cd3bd1b1f48572ab403983 (diff)
py/gc: Make GC stack pointer a local variable.
This saves a bit in code size, and saves some precious .bss RAM: .text .bss minimal CROSS=1: -28 -4 unix (64-bit): -64 -8
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index 45e89590f..a7ffbbf3c 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -78,7 +78,6 @@ typedef struct _mp_state_mem_t {
int gc_stack_overflow;
size_t gc_stack[MICROPY_ALLOC_GC_STACK_SIZE];
- size_t *gc_sp;
uint16_t gc_lock_depth;
// This variable controls auto garbage collection. If set to 0 then the