summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-01-08 19:58:06 +0000
committerDavid Mitchell <davem@iabyn.com>2010-01-08 19:58:06 +0000
commit4149198fba64273f3fea8fc073ccb5d080059f4a (patch)
tree3c02c17252b79b69d48c27bd4b2249c5f6f08b43
parentb59cce4c9ab9c747c4b96a99d059821ace37a09a (diff)
downloadperl-4149198fba64273f3fea8fc073ccb5d080059f4a.tar.gz
reset sv_serial for each new interpreter
to a value of 0 + 1000000*interpreter_number where interpreter_number is currently just a dirty hash of my_perl
-rw-r--r--sv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 2683d8966a..38a914064f 100644
--- a/sv.c
+++ b/sv.c
@@ -11836,6 +11836,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_sig_pending = 0;
PL_parser = NULL;
Zero(&PL_debug_pad, 1, struct perl_debug_pad);
+ PL_sv_serial = (((U32)my_perl >> 2) & 0xfff) * 1000000;
#else /* !DEBUGGING */
Zero(my_perl, 1, PerlInterpreter);
#endif /* DEBUGGING */