homepage

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 vstinner
Recipients eric.snow, ncoghlan, serhiy.storchaka, vstinner
Date 2017年03月23日.10:27:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490264836.48.0.77731588251.issue29881@psf.upfronthosting.co.za>
In-reply-to
Content
Serhiy: "use gc_next/gc_refs for managing a linked list"
I'm not sure that I understand your idea. These fields are already used internally by the garbage collector. If I modify one of these fields, it would corrupt the GC, no?
Serhiy: "You can use a dynamic array of PyObject** instead of a linked list for collecting references to "static variables""
Ah yes, I like the idea of using a single array to track all variables. An array reduces memory fragmentation and is simple to maintain, since the API only needs two operations: list.append(obj) and list.clear(). The API already requires to check for errors, so another memory allocation failure wouldn't be suprising.
History
Date User Action Args
2017年03月23日 10:27:16vstinnersetrecipients: + vstinner, ncoghlan, eric.snow, serhiy.storchaka
2017年03月23日 10:27:16vstinnersetmessageid: <1490264836.48.0.77731588251.issue29881@psf.upfronthosting.co.za>
2017年03月23日 10:27:16vstinnerlinkissue29881 messages
2017年03月23日 10:27:16vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /