Skip to content

Commit 9318ce1

Browse files
committed
Add new classes to globals check whitelist
1 parent 2814c23 commit 9318ce1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Python/instrumentation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3035,10 +3035,10 @@ branchesiter_dealloc(branchesiterator *bi)
30353035
PyObject_Free(bi);
30363036
}
30373037

3038-
PyTypeObject _PyBranchesIterator = {
3038+
static PyTypeObject _PyBranchesIterator = {
30393039
PyVarObject_HEAD_INIT(&PyType_Type, 0)
30403040
"line_iterator", /* tp_name */
3041-
sizeof(branchesiterator), /* tp_basicsize */
3041+
sizeof(branchesiterator), /* tp_basicsize */
30423042
0, /* tp_itemsize */
30433043
/* methods */
30443044
.tp_dealloc = (destructor)branchesiter_dealloc,

Tools/c-analyzer/cpython/globals-to-fix.tsv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ Python/context.c - PyContextToken_Type -
106106
Python/context.c - PyContextVar_Type -
107107
Python/context.c - PyContext_Type -
108108
Python/instruction_sequence.c - _PyInstructionSequence_Type -
109+
Python/instrumentation.c - _PyLegacyBranchEventHandler_Type -
110+
Python/instrumentation.c - _PyBranchesIterator -
109111
Python/traceback.c - PyTraceBack_Type -
110112

111113
##-----------------------

0 commit comments

Comments
 (0)