8000 gh-132917: Check resident set size (RSS) before GC trigger. by nascheme · Pull Request #133399 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-132917: Check resident set size (RSS) before GC trigger. #133399

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 9 commits into from
May 5, 2025
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
Cleanup includes.
  • Loading branch information
nascheme committed May 4, 2025
commit 1091342a526a8b83d14106f0f0cb159b7f398179
6 changes: 0 additions & 6 deletions Python/gc_free_threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@
#include <psapi.h> // For GetProcessMemoryInfo
#elif defined(__linux__)
#include <unistd.h> // For sysconf, getpid
//#include <errno.h>
// #include <fcntl.h> // Only if using open/read directly
#elif defined(__APPLE__)
// macOS (Darwin)
#include <mach/mach.h>
#include <unistd.h> // For sysconf, getpid
#elif defined(__FreeBSD__)
// FreeBSD
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/user.h> // Requires sys/user.h for kinfo_proc definition
Expand All @@ -39,12 +35,10 @@
#include <fcntl.h> // For O_RDONLY
#include <limits.h> // For _POSIX2_LINE_MAX
#elif defined(__OpenBSD__)
// OpenBSD
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/user.h> // For kinfo_proc
#include <unistd.h> // For sysconf, getpid
//#include <errno.h>
#endif

// enable the "mark alive" pass of GC
Expand Down
0