8000 bpo-28254: Add a C-API for controlling the state of the garbage collector by scoder · Pull Request #25687 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-28254: Add a C-API for controlling the state of the garbage collector #25687

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 17 commits into from
Apr 28, 2021
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
Remove an incorrect part of a comment: PyGC_Collect() actually does n…
…othing if GC is disabled.
  • Loading branch information
scoder committed Apr 28, 2021
commit cbee918d35cc8121d1ef2c9acc470d2d72b3c06b
2 changes: 1 addition & 1 deletion Include/objimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
* ==========================
*/

/* C equivalent of gc.collect() which ignores the state of gc.enabled. */
/* C equivalent of gc.collect(). */
PyAPI_FUNC(Py_ssize_t) PyGC_Collect(void);
/* C API for controlling the state of the garbage collector */
PyAPI_FUNC(int) PyGC_Enable(void);
Expand Down
0