diff options
author | Damien George <damien.p.george@gmail.com> | 2017-02-27 23:56:46 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-06 17:01:56 +1100 |
commit | 05fe66f68a1cf1b7587c55149472ab7bca843631 (patch) | |
tree | e2e38a0124db195eb8ae011cd05f2a7316c9b06e /py/nlrx86.S | |
parent | fe866d996f54df0c5687c94b98abff5410ef02c9 (diff) | |
download | micropython-05fe66f68a1cf1b7587c55149472ab7bca843631.tar.gz micropython-05fe66f68a1cf1b7587c55149472ab7bca843631.zip |
py: Move locals/globals dicts to the thread-specific state.
Each threads needs to have its own private references to its current
locals/globals dicts, otherwise functions running within different
contexts (eg imported from different files) can behave very strangely.
Diffstat (limited to 'py/nlrx86.S')
-rw-r--r-- | py/nlrx86.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/nlrx86.S b/py/nlrx86.S index ff0cc21305..16d6f57c6a 100644 --- a/py/nlrx86.S +++ b/py/nlrx86.S @@ -52,7 +52,7 @@ #endif // offset of nlr_top within mp_state_thread_t structure -#define NLR_TOP_TH_OFF (0) +#define NLR_TOP_TH_OFF (2 * 4) .file "nlr.s" .text |