diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-11-14 15:05:57 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-11-14 15:05:57 +0000 |
commit | 8e19b54af507c5ab27542aecc414a80a5ab67428 (patch) | |
tree | 9805504c69481bda6250c77d8931432dcf3d52d4 /ext/Thread | |
parent | b715f106331fad5cca1779055ebe7cca8c8f25a9 (diff) | |
download | perl-8e19b54af507c5ab27542aecc414a80a5ab67428.tar.gz |
Remove stale code from Thread.xs.
p4raw-id: //depot/perl@251
Diffstat (limited to 'ext/Thread')
-rw-r--r-- | ext/Thread/Thread.xs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/ext/Thread/Thread.xs b/ext/Thread/Thread.xs index ba256c9402..9e3c439276 100644 --- a/ext/Thread/Thread.xs +++ b/ext/Thread/Thread.xs @@ -115,44 +115,9 @@ threadstart(void *arg) DEBUG_L(PerlIO_printf(PerlIO_stderr(), "new thread %p starting at %s\n", thr, SvPEEK(TOPs))); -#ifdef OLD_WAY - JMPENV_PUSH(ret); - switch (ret) { - case 3: - PerlIO_printf(PerlIO_stderr(), "panic: threadstart\n"); - /* fall through */ - case 1: - STATUS_ALL_FAILURE; - /* fall through */ - case 2: - /* my_exit() was called */ - while (scopestack_ix > oldscope) - LEAVE; - JMPENV_POP; - MUTEX_LOCK(&thr->mutex); - thr->flags |= THRf_DID_DIE; - MUTEX_UNLOCK(&thr->mutex); - av = newSVpvf("Thread called exit with value %d", statusvalue); - goto finishoff; - } - - CATCH_SET(TRUE); - - /* Now duplicate most of perl_call_sv but with a few twists */ - op = (OP*)&myop; - Zero(op, 1, LOGOP); - myop.op_flags = OPf_STACKED; - myop.op_next = Nullop; - myop.op_flags |= OPf_KNOW; - myop.op_flags |= OPf_WANT_LIST; - op = pp_entersub(ARGS); - if (op) - runops(); -#else sv = POPs; PUTBACK; perl_call_sv(sv, G_ARRAY|G_EVAL); -#endif SPAGAIN; retval = sp - (stack_base + oldmark); sp = stack_base + oldmark + 1; |