mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
Update vm.cpp
This commit is contained in:
parent
5cfd66f8b2
commit
b09b848c23
@ -513,6 +513,8 @@ PyObject* VM::__py_exec_internal(const CodeObject_& code, PyObject* globals, PyO
|
|||||||
return vm->_exec(code.get(), frame->_module, frame->_callable, frame->_locals);
|
return vm->_exec(code.get(), frame->_module, frame->_callable, frame->_locals);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto _lock = heap.gc_scope_lock(); // for safety
|
||||||
|
|
||||||
PyObject* globals_obj = nullptr;
|
PyObject* globals_obj = nullptr;
|
||||||
Dict* globals_dict = nullptr;
|
Dict* globals_dict = nullptr;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user