We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b432e3 commit a0c76fdCopy full SHA for a0c76fd
Include/internal/pycore_interpframe.h
@@ -163,9 +163,9 @@ _PyFrame_GetLocalsArray(_PyInterpreterFrame *frame)
163
return frame->localsplus;
164
}
165
166
-/* Fetches the stack pointer, and sets stackpointer to NULL.
167
- Having stackpointer == NULL ensures that invalid
168
- values are not visible to the cycle GC. */
+// Fetches the stack pointer, and (on debug builds) sets stackpointer to NULL.
+// Having stackpointer == NULL makes it easier to catch missing stack pointer
+// spills/restores (which could expose invalid values to the GC) using asserts.
169
static inline _PyStackRef*
170
_PyFrame_GetStackPointer(_PyInterpreterFrame *frame)
171
{
0 commit comments