Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-90815: Add mimalloc memory allocator #31164

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
Show file tree
Hide file tree
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
Hook up mi_collect for debugging
  • Loading branch information
tiran committed Aug 30, 2022
commit 716a5f3a7809ec797b222d2bdca9de48de21581c
72 changes: 71 additions & 1 deletion 72 Python/clinic/sysmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions 17 Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2035,6 +2035,22 @@ extern PyObject *_Py_GetDXProfile(PyObject *, PyObject *);
}
#endif

#ifdef WITH_MIMALLOC
/*[clinic input]
sys._mi_collect

force: bool = False

[clinic start generated code]*/

static PyObject *
sys__mi_collect_impl(PyObject *module, int force)
/*[clinic end generated code: output=c674624749771706 input=f6a11d7d4e5731c8]*/
{
mi_collect(force);
Py_RETURN_NONE;
}
#endif

/*[clinic input]
sys._clear_type_cache
Expand Down Expand Up @@ -2277,6 +2293,7 @@ static PyMethodDef sys_methods[] = {
SYS__STATS_CLEAR_METHODDEF
SYS__STATS_DUMP_METHODDEF
#endif
SYS__MI_COLLECT_METHODDEF
{NULL, NULL} // sentinel
};

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.