summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-02 15:51:39 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-02 15:51:39 +0000
commit940cb80d04d066d4fedfc4486ab57e435ee74514 (patch)
tree29bcb5cc4d0e30eb584990d09b0ee5b2ad73cc49 /pp.c
parent5330fa38cab061dceb2210e65e8eccfafbebc694 (diff)
downloadperl-940cb80d04d066d4fedfc4486ab57e435ee74514.tar.gz
Introduced thr->threadsvp and THREADSV() for faster per-thread
variables. Moved threadnum to a per-interpreter variable and made dTHR and lock/unlock of sv_mutex bypass the get/lock unless more than one thread may be running. Minor tweaks to Thread.xs. p4raw-id: //depot/perl@453
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 7864089313..765f10b702 100644
--- a/pp.c
+++ b/pp.c
@@ -4314,7 +4314,7 @@ PP(pp_threadsv)
if (op->op_private & OPpLVAL_INTRO)
PUSHs(*save_threadsv(op->op_targ));
else
- PUSHs(*av_fetch(thr->threadsv, op->op_targ, FALSE));
+ PUSHs(THREADSV(op->op_targ));
RETURN;
#else
DIE("tried to access per-thread data in non-threaded perl");