mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-104584: Miscellaneous fixes for -Xuops (GH-106908)
This commit is contained in:
parent
009e8f084c
commit
214a25dd81
10 changed files with 67 additions and 18 deletions
|
@ -1192,7 +1192,11 @@ init_interp_main(PyThreadState *tstate)
|
|||
}
|
||||
if (enabled) {
|
||||
PyObject *opt = PyUnstable_Optimizer_NewUOpOptimizer();
|
||||
if (opt == NULL) {
|
||||
return _PyStatus_ERR("can't initialize optimizer");
|
||||
}
|
||||
PyUnstable_SetOptimizer((_PyOptimizerObject *)opt);
|
||||
Py_DECREF(opt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue