mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-109369: Merge all eval-breaker flags and monitoring version into one word. (GH-109846)
This commit is contained in:
parent
7c149a76b2
commit
bf4bc36069
13 changed files with 188 additions and 234 deletions
|
@ -24,6 +24,7 @@
|
|||
*/
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_ceval.h" // _Py_set_eval_breaker_bit()
|
||||
#include "pycore_context.h"
|
||||
#include "pycore_dict.h" // _PyDict_MaybeUntrack()
|
||||
#include "pycore_initconfig.h"
|
||||
|
@ -2274,11 +2275,7 @@ _Py_ScheduleGC(PyInterpreterState *interp)
|
|||
if (gcstate->collecting == 1) {
|
||||
return;
|
||||
}
|
||||
struct _ceval_state *ceval = &interp->ceval;
|
||||
if (!_Py_atomic_load_relaxed(&ceval->gc_scheduled)) {
|
||||
_Py_atomic_store_relaxed(&ceval->gc_scheduled, 1);
|
||||
_Py_atomic_store_relaxed(&ceval->eval_breaker, 1);
|
||||
}
|
||||
_Py_set_eval_breaker_bit(interp, _PY_GC_SCHEDULED_BIT, 1);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue