8000 GH-108362: Incremental GC implementation by markshannon · Pull Request #116199 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-108362: Incremental GC implementation #116199

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

Closed
wants to merge 19 commits into from
Closed
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
Merge branch 'main' into incremental-gc
  • Loading branch information
markshannon committed Jan 8, 2024
commit 7d60e1810121a58d2c44fbad57bb1951155ff2dc
14 changes: 8 additions & 6 deletions Modules/gcmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,14 @@ gc_set_threshold_impl(PyObject *module, int threshold0, int group_right_1,
/*[clinic end generated code: output=2e3c7c7dd59060f3 input=0d9612db50984eec]*/
{
GCState *gcstate = get_gc_state();
int ignore;
if (!PyArg_ParseTuple(args, "i|ii:set_threshold",
&gcstate->young.threshold,
&gcstate->old[0].threshold,
&ignore))
return NULL;

gcstate->young.threshold = threshold0;
if (group_right_1) {
gcstate->old[0].threshold = threshold1;
}
if (group_right_2) {
gcstate->old[1].threshold = threshold2;
}
Py_RETURN_NONE;
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0