Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
13 changes: 4 additions & 9 deletions Include/internal/pycore_interp_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,10 @@ struct _gc_runtime_state {
/* True if gc.freeze() has been used. */
int freeze_active;

/* Memory usage of the process (RSS + swap) after last GC. */
Py_ssize_t last_mem;

/* This accumulates the new object count whenever collection is deferred
due to the RSS increase condition not being meet. Reset on collection. */
Py_ssize_t deferred_count;

/* Mutex held for gc_should_collect_mem_usage(). */
PyMutex mutex;
/* Adaptive threshold used to decide when to trigger a collection.
Adjusted after each collection based on the fraction of objects found to
be trash. */
int adaptive_threshold;
#endif
};

Expand Down
Loading
Loading