mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
shared/runtime/pyexec: Unconditionally reset lock depth.
Saves code size for the same functionality. Signed-off-by: Jeff Epler <jepler@gmail.com>
This commit is contained in:
committed by
Damien George
parent
a791f7f43c
commit
4db2cf09e0
@@ -598,9 +598,7 @@ friendly_repl_reset:
|
||||
|
||||
// If the GC is locked at this point there is no way out except a reset,
|
||||
// so force the GC to be unlocked to help the user debug what went wrong.
|
||||
if (MP_STATE_THREAD(gc_lock_depth) != 0) {
|
||||
MP_STATE_THREAD(gc_lock_depth) = 0;
|
||||
}
|
||||
MP_STATE_THREAD(gc_lock_depth) = 0;
|
||||
|
||||
vstr_reset(&line);
|
||||
int ret = readline(&line, mp_repl_get_ps1());
|
||||
|
||||
Reference in New Issue
Block a user