File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -564,21 +564,8 @@ static PyGetSetDef frame_getsetlist[] = {
564
564
frame is on the free list, only the following members have a meaning:
565
565
ob_type == &Frametype
566
566
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.
581
567
*/
568
+
582
569
/* max value for numfree */
583
570
#define PyFrame_MAXFREELIST 200
584
571
Original file line number Diff line number Diff line change @@ -2011,7 +2011,6 @@ _PyThreadState_PushLocals(PyThreadState *tstate, size_t size)
2011
2011
_PyErr_SetString (tstate , PyExc_MemoryError , "Out of memory" );
2012
2012
return NULL ;
2013
2013
}
2014
- printf ("Pushing chunk\n" );
2015
2014
tstate -> datastack_chunk -> top = tstate -> datastack_top - & tstate -> datastack_chunk -> data [0 ];
2016
2015
tstate -> datastack_chunk = new ;
2017
2016
tstate -> datastack_limit = (PyObject * * )(((char * )new ) + allocate_size );
@@ -2031,7 +2030,6 @@ void
2031
2030
_PyThreadState_PopLocals (PyThreadState * tstate , PyObject * * locals )
2032
2031
{
2033
2032
if (locals == & tstate -> datastack_chunk -> data [0 ]) {
2034
- printf ("Popping chunk\n" );
2035
2033
_PyStackChunk * chunk = tstate -> datastack_chunk ;
2036
2034
_PyStackChunk * previous = chunk -> previous ;
2037
2035
tstate -> datastack_top = & previous -> data [previous -> top ];
You can’t perform that action at this time.
0 commit comments