develooper Front page | perl.perl6.internals | Postings from December 2002

[perl #19332] [PATCH] mark PMCs w/o next_for_GC

Thread Next
From:
Leopold Toetsch
Date:
December 21, 2002 07:47
Subject:
[perl #19332] [PATCH] mark PMCs w/o next_for_GC
Message ID:
rt-19332-46018.10.2411364436098@bugs6.perl.org
# 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).

This would allow finally to use one common mark function:

void pobject_lives(PObj* obj)

which is the same as buffer_lives() now looks like (modulo the 
interpreter used for GC_DEBUG).

A short test (5E6 new P0, .PerlUndef) in a loop shows ~1% speed increase 
due to one less instruction in headers.c:get_free_pmc().

Comments welcome,
leo


-- attachment  1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/46018/36002/ea1b6f/mark.patch



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About