Change 31718 by [EMAIL PROTECTED] on 2007/08/15 09:59:16

        Document SvSHARED_HASH.
        
        Subject: Re: newSVpvn_share doesn't seem to correctly initialize the 
hash
        value with perl >= 5.9.3
        From: Vincent Pit <[EMAIL PROTECTED]>
        Date: Tue, 14 Aug 2007 20:54:36 +0200
        Message-Id: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/sv.c#1418 edit

Differences ...

==== //depot/perl/sv.c#1418 (text) ====
Index: perl/sv.c
--- perl/sv.c#1417~31502~       2007-06-29 02:00:32.000000000 -0700
+++ perl/sv.c   2007-08-15 02:59:16.000000000 -0700
@@ -7059,11 +7059,11 @@
 
 Creates a new SV with its SvPVX_const pointing to a shared string in the string
 table. If the string does not already exist in the table, it is created
-first.  Turns on READONLY and FAKE.  The string's hash is stored in the UV
-slot of the SV; if the C<hash> parameter is non-zero, that value is used;
-otherwise the hash is computed.  The idea here is that as the string table
-is used for shared hash keys these strings will have SvPVX_const == HeKEY and
-hash lookup will avoid string compare.
+first.  Turns on READONLY and FAKE. If the C<hash> parameter is non-zero, that
+value is used; otherwise the hash is computed. The string's hash can be later
+be retrieved from the SV with the C<SvSHARED_HASH()> macro. The idea here is
+that as the string table is used for shared hash keys these strings will have
+SvPVX_const == HeKEY and hash lookup will avoid string compare.
 
 =cut
 */
End of Patch.

Reply via email to