Skip to content

Commit 8a9ae01

Browse files
committed
Delete obsolete comment and debug print statements
1 parent 73c49d5 commit 8a9ae01

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

Objects/frameobject.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -564,21 +564,8 @@ static PyGetSetDef frame_getsetlist[] = {
564564
frame is on the free list, only the following members have a meaning:
565565
ob_type == &Frametype
566566
f_back next item on free list, or NULL
567-
f_stacksize size of value stack
568-
ob_size size of localsplus
569-
Note that the value and block stacks are preserved -- this can save
570-
another malloc() call or two (and two free() calls as well!).
571-
Also note that, unlike for integers, each frame object is a
572-
malloc'ed object in its own right -- it is only the actual calls to
573-
malloc() that we are trying to save here, not the administration.
574-
After all, while a typical program may make millions of calls, a
575-
call depth of more than 20 or 30 is probably already exceptional
576-
unless the program contains run-away recursion. I hope.
577-
578-
Later, PyFrame_MAXFREELIST was added to bound the # of frames saved on
579-
free_list. Else programs creating lots of cyclic trash involving
580-
frames could provoke free_list into growing without bound.
581567
*/
568+
582569
/* max value for numfree */
583570
#define PyFrame_MAXFREELIST 200
584571

Python/pystate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,6 @@ _PyThreadState_PushLocals(PyThreadState *tstate, size_t size)
20112011
_PyErr_SetString(tstate, PyExc_MemoryError, "Out of memory");
20122012
return NULL;
20132013
}
2014-
printf("Pushing chunk\n");
20152014
tstate->datastack_chunk->top = tstate->datastack_top - &tstate->datastack_chunk->data[0];
20162015
tstate->datastack_chunk = new;
20172016
tstate->datastack_limit = (PyObject **)(((char *)new) + allocate_size);
@@ -2031,7 +2030,6 @@ void
20312030
_PyThreadState_PopLocals(PyThreadState *tstate, PyObject **locals)
20322031
{
20332032
if (locals == &tstate->datastack_chunk->data[0]) {
2034-
printf("Popping chunk\n");
20352033
_PyStackChunk *chunk = tstate->datastack_chunk;
20362034
_PyStackChunk *previous = chunk->previous;
20372035
tstate->datastack_top = &previous->data[previous->top];

0 commit comments

Comments
 (0)