diff options
| author | Damien George | 2016-04-22 22:44:56 +0000 |
|---|---|---|
| committer | Damien George | 2016-06-28 11:09:31 +0100 |
| commit | 330165a2cc9a0d4d5d00f13f851412c25d5f4ed2 (patch) | |
| tree | 51e3fb1500e57441899d914f85e69a8436bfe81b /mpy-cross | |
| parent | 3545ef8bb49d9ad02e85bd13f478072f8059c582 (diff) | |
py: Add MP_STATE_THREAD to hold state specific to a given thread.
Diffstat (limited to 'mpy-cross')
| -rw-r--r-- | mpy-cross/gccollect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpy-cross/gccollect.c b/mpy-cross/gccollect.c index 4e7e5178a..75891a2fb 100644 --- a/mpy-cross/gccollect.c +++ b/mpy-cross/gccollect.c @@ -142,7 +142,7 @@ void gc_collect(void) { gc_helper_get_regs(regs); // GC stack (and regs because we captured them) void **regs_ptr = (void**)(void*)®s; - gc_collect_root(regs_ptr, ((mp_uint_t)MP_STATE_VM(stack_top) - (mp_uint_t)®s) / sizeof(mp_uint_t)); + gc_collect_root(regs_ptr, ((mp_uint_t)MP_STATE_THREAD(stack_top) - (mp_uint_t)®s) / sizeof(mp_uint_t)); #if MICROPY_EMIT_NATIVE mp_unix_mark_exec(); #endif |
