summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorpdox <pdox@alum.mit.edu>2017-10-26 06:03:01 (GMT)
committerBenjamin Peterson <benjamin@python.org>2017-10-26 06:03:01 (GMT)
commit1896793520a49a6f97ae360c0b288967e56b005e (patch)
treeb757b6b4691e52d5f3d22177ac23de50ad7d1d25 /Include/pystate.h
parent32318930da70ff03320ec50813b843e7db6fbc2e (diff)
downloadcpython-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.h2
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. */