summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-05-24 20:23:53 +0000
committerNicholas Clark <nick@ccl4.org>2005-05-24 20:23:53 +0000
commit8df990a80edc96eccc56917e48f11674102e8285 (patch)
tree579b4d37254812f06fa4c165a84b8060fe2d2d61
parent199f3245d0efbd4bc138ab358c5f5889c79d7083 (diff)
downloadperl-8df990a80edc96eccc56917e48f11674102e8285.tar.gz
Initialising the hash seed needs to be early in case anything
calcualtes HASHes during dup()ing. p4raw-id: //depot/perl@24570
-rw-r--r--sv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index b3e3d94da7..3e87962c43 100644
--- a/sv.c
+++ b/sv.c
@@ -11655,6 +11655,9 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_debug = proto_perl->Idebug;
+ PL_hash_seed = proto_perl->Ihash_seed;
+ PL_rehash_seed = proto_perl->Irehash_seed;
+
#ifdef USE_REENTRANT_API
/* XXX: things like -Dm will segfault here in perlio, but doing
* PERL_SET_CONTEXT(proto_perl);
@@ -12095,8 +12098,6 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_glob_index = proto_perl->Iglob_index;
PL_srand_called = proto_perl->Isrand_called;
- PL_hash_seed = proto_perl->Ihash_seed;
- PL_rehash_seed = proto_perl->Irehash_seed;
PL_uudmap['M'] = 0; /* reinits on demand */
PL_bitcount = Nullch; /* reinits on demand */