mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
bpo-31356: Add context manager to temporarily disable GC (GH-4224)
This commit is contained in:
parent
0cd6bca655
commit
72a0d218dc
5 changed files with 208 additions and 1 deletions
|
@ -116,6 +116,7 @@ struct _gc_runtime_state {
|
|||
|
||||
int enabled;
|
||||
int debug;
|
||||
long disabled_threads;
|
||||
/* linked lists of container objects */
|
||||
struct gc_generation generations[NUM_GENERATIONS];
|
||||
PyGC_Head *generation0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue