diff options
author | pdox <pdox@alum.mit.edu> | 2017-10-26 06:03:01 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2017-10-26 06:03:01 (GMT) |
commit | 1896793520a49a6f97ae360c0b288967e56b005e (patch) | |
tree | b757b6b4691e52d5f3d22177ac23de50ad7d1d25 /Include/pystate.h | |
parent | 32318930da70ff03320ec50813b843e7db6fbc2e (diff) | |
download | cpython-1896793520a49a6f97ae360c0b288967e56b005e.zip cpython-1896793520a49a6f97ae360c0b288967e56b005e.tar.gz cpython-1896793520a49a6f97ae360c0b288967e56b005e.tar.bz2 |
bpo-31857: Make the behavior of USE_STACKCHECK deterministic (#4098)
Diffstat (limited to 'Include/pystate.h')
-rw-r--r-- | Include/pystate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 238008f..0821238 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -151,6 +151,8 @@ typedef struct _ts { to handle the runtime error. */ char recursion_critical; /* The current calls must not cause a stack overflow. */ + int stackcheck_counter; + /* 'tracing' keeps track of the execution depth when tracing/profiling. This is to prevent the actual trace/profile code from being recorded in the trace/profile. */ |