This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients christian.heimes, gregory.p.smith, pitrou
Date 2008-08-18.01:15:43
SpamBayes Score 2.1271762e-11
Marked as misclassified No
Message-id <1219022145.78.0.64259642604.issue2013@psf.upfronthosting.co.za>
In-reply-to
Content
preventing this right now is that when i apply this to py3k today, it
fails miserably in a debug build.

first, my patch has an invalid assert(size > 0) in it in _PyLong_New as
0 size is used when the value is 0.  get rid of that line.

then things at least run but you'll end up in an infinite loop when the
interpreter exits at best if you've compiled in debug mode.

things work great in a non-pydebug build.

i believe the reason is this change is not properly looking at the
structure allocation sizes.  debug builds add extra structure fields.

i'm investigating.  the free_list code in floatobject.c does not have
this problem so at least there's a good example to go from.

and yet another reason why a more general free list library for various
internals to use would be useful...
History
Date User Action Args
2008-08-18 01:15:46gregory.p.smithsetrecipients: + gregory.p.smith, pitrou, christian.heimes
2008-08-18 01:15:45gregory.p.smithsetmessageid: <1219022145.78.0.64259642604.issue2013@psf.upfronthosting.co.za>
2008-08-18 01:15:45gregory.p.smithlinkissue2013 messages
2008-08-18 01:15:44gregory.p.smithcreate