summaryrefslogtreecommitdiffstatshomepage
path: root/lib/utils/pyexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/pyexec.c')
-rw-r--r--lib/utils/pyexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c
index d1e955d65b..4446b36b61 100644
--- a/lib/utils/pyexec.c
+++ b/lib/utils/pyexec.c
@@ -588,8 +588,8 @@ 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_MEM(gc_lock_depth) != 0) {
- MP_STATE_MEM(gc_lock_depth) = 0;
+ if (MP_STATE_THREAD(gc_lock_depth) != 0) {
+ MP_STATE_THREAD(gc_lock_depth) = 0;
}
vstr_reset(&line);