summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2007-08-14 22:54:36 +0200
committerAbhijit Menon-Sen <ams@wiw.org>2007-08-15 09:59:16 +0000
commit758fcfc19a1a2c48f6e2b45a4c3c6ef17980ecb4 (patch)
tree43abc7597a574a8884020cf6a66dfb8bb708bac6 /sv.c
parentde731c35b85c2e130cb18f72491741776bd280e0 (diff)
downloadperl-758fcfc19a1a2c48f6e2b45a4c3c6ef17980ecb4.tar.gz
Document SvSHARED_HASH.
Subject: Re: newSVpvn_share doesn't seem to correctly initialize the hash value with perl >= 5.9.3 Message-Id: <46C1FA6C.4090801@profvince.com> p4raw-id: //depot/perl@31718
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sv.c b/sv.c
index f503f140a1..bf9e575c5c 100644
--- a/sv.c
+++ b/sv.c
@@ -7059,11 +7059,11 @@ Perl_newSVhek(pTHX_ const HEK *hek)
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
*/