|
|
@@ -2307,7 +2307,7 @@ public:
|
|
|
|
|
|
namespace pkpy {
|
|
|
const uint8_t MAX_POOLING_N = 10;
|
|
|
- static std::vector<PyVar*>* _poolArgList = new std::vector<PyVar*>[MAX_POOLING_N];
|
|
|
+ static thread_local std::vector<PyVar*>* _poolArgList = new std::vector<PyVar*>[MAX_POOLING_N];
|
|
|
|
|
|
class ArgList {
|
|
|
PyVar* _args = nullptr;
|
|
|
@@ -2428,7 +2428,7 @@ namespace pkpy {
|
|
|
};
|
|
|
|
|
|
const ArgList& noArg(){
|
|
|
- static ArgList ret(0);
|
|
|
+ static const ArgList ret(0);
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
@@ -3865,7 +3865,7 @@ public:
|
|
|
Frame(const CodeObject* code, PyVar _module, PyVarDict&& locals)
|
|
|
: code(code), _module(_module), f_locals(std::move(locals)) {
|
|
|
|
|
|
- static uint64_t frame_id = 1;
|
|
|
+ static thread_local uint64_t frame_id = 1;
|
|
|
id = frame_id++;
|
|
|
}
|
|
|
|