Visitar URL original
gh-97922: Run the GC only on eval breaker by pablogsal · Pull Request #97920 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Python/ceval_gil.c
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
  • Loading branch information
pablogsal and brandtbucher authored Oct 7, 2022
commit 28426c2f652ad02016d70ec72dc6f84b2bc21e91
2 changes: 1 addition & 1 deletion Python/ceval_gil.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,8 @@ _Py_HandlePending(PyThreadState *tstate)
/* GC scheduled to run */
if (_Py_atomic_load_relaxed_int32(&interp_ceval_state->gc_scheduled)) {
_Py_atomic_store_relaxed(&interp_ceval_state->gc_scheduled, 0);
_Py_RunGC(tstate);
COMPUTE_EVAL_BREAKER(tstate->interp, ceval, interp_ceval_state);
_Py_RunGC(tstate);
}

/* Pending signals */
Expand Down