At 3:47 PM +0000 12/21/02, Leopold Toetsch (via RT) wrote:
# New Ticket Created by  Leopold Toetsch
# Please include the string:  [perl #19332]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=19332 >


I'll send this first to the list for review.

This patch changes mark_used(PMC *) so that the PMC field next_for_GC
isn't used anymore (it could be removed now, making a PMC one ptr size
smaller).
From a reading of the code, this allocates memory within a function that's called during garbage collection. We can't do that. If you want to have a separate pool, or set of pools, that's allocated out of the GC run functions that's fine, but no memory allocations while we're cleaning up.

That's the reason for the pointer that's in the PMC structure now, and the reason that we don't trace strings. (Memory savings on the latter, preallocated space in the former) If you want to try an alternate plan, that's fine, but this one we can't use, unfortunately.
--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk

Reply via email to