Author haypo
Recipients amaury.forgeotdarc, haypo
Date 2008-12-10.02:50:03
SpamBayes Score 4.60292e-07
Marked as misclassified No
Message-id <1228877409.34.0.224572049837.issue3999@psf.upfronthosting.co.za>
In-reply-to
Content
New patch:
 - limit memory footprint: use a static buffer to store the frames, 
with a maximum of MAXDEPTH frames (default: MAXDEPTH=100)
 - if there are more than MAXDEPTH frames, jump to the frame MAXDEPTH 
on error (it's like a truncated traceback)
 - don't call segfault_exit() in PyEval_EvalFrameEx() if 
segfault_enter() was not called

On Ubuntu Gutsy, for MAXDEPTH=100 the memory footprint is 19996 bytes. 
I think that it's small, but it's possible to reduce the footprint by 
using less frames or disable the alternative stack (needed for stack 
overflow errors).
History
Date User Action Args
2008-12-10 02:50:09hayposetrecipients: + haypo, amaury.forgeotdarc
2008-12-10 02:50:09hayposetmessageid: <1228877409.34.0.224572049837.issue3999@psf.upfronthosting.co.za>
2008-12-10 02:50:08haypolinkissue3999 messages
2008-12-10 02:50:08haypocreate