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

[perl #16859] [PATCH] Fix BUFFER_external_FLAG for strings

Thread Next
From:
Steve Fink
Date:
August 29, 2002 13:28
Subject:
[perl #16859] [PATCH] Fix BUFFER_external_FLAG for strings
Message ID:
rt-16859-36052.10.7175977339917@bugs6.perl.org
# New Ticket Created by  Steve Fink 
# Please include the string:  [perl #16859]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=16859 >


This patch is the real fix for strings with the BUFFER_external_FLAG.
It requires the previous dod.c and resources.c patches to be applied.

Strings marked with the BUFFER_external_FLAG point to the external
memory rather than making a copy for themselves. Side effects of this
are (1) less memory usage, (2) external updates to the string are
reflected in the Parrot STRING (except for length changes!), and (3)
these strings are skipped over when memory is getting moved around
during a compaction.


-- attachment  1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/36052/29178/90822c/external-strings.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