bpo-31857: Make the behavior of USE_STACKCHECK deterministic (#4098)

This commit is contained in:
pdox 2017-10-25 23:03:01 -07:00 committed by Benjamin Peterson
parent 32318930da
commit 1896793520
6 changed files with 15 additions and 11 deletions

View file

@ -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. */