8000 gh-112175: Add `eval_breaker` to `PyThreadState` by swtaarrs · Pull Request #115194 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-112175: Add eval_breaker to PyThreadState #115194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 20, 2024
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
Add !IsSignalled check to free-threaded _Py_ScheduleGC to match norma…
…l build
  • Loading branch information
swtaarrs committed Feb 9, 2024
commit 58f679c9a7a07540794a016381f270724a960e9b
5 changes: 4 additions & 1 deletion Python/gc_free_threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,10 @@ PyObject_IS_GC(PyObject *obj)
void
_Py_ScheduleGC(PyThreadState *tstate)
{
_PyThreadState_Signal(tstate, _PY_GC_SCHEDULED_BIT);
if (!_PyThreadState_IsSignalled(tstate, _PY_GC_SCHEDULED_BIT))
{
_PyThreadState_Signal(tstate, _PY_GC_SCHEDULED_BIT);
}
}

void
Expand Down
0