New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] cleanup on commit "Pseudo-fork dups arg array on argless calls" #13782
Labels
Comments
From @bulk88Created by @bulk88See attached patch. Perl Info
|
From @bulk880001-cleanup-on-commit-Pseudo-fork-dups-arg-array-on-argl.patchFrom 759f7937d5330796e47b6377dcf64578f56975b8 Mon Sep 17 00:00:00 2001
From: Daniel Dragan <bulk88@hotmail.com>
Date: Tue, 29 Apr 2014 12:27:42 -0400
Subject: [PATCH] cleanup on commit "Pseudo-fork dups arg array on argless
calls"
less branching, less cpu intructions, easier to read
---
sv.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/sv.c b/sv.c
index 85f91f1..121e111 100644
--- a/sv.c
+++ b/sv.c
@@ -12774,14 +12774,13 @@ Perl_cx_dup(pTHX_ PERL_CONTEXT *cxs, I32 ix, I32 max, CLONE_PARAMS* param)
ncx->blk_sub.cv = (ncx->blk_sub.olddepth == 0
? cv_dup_inc(ncx->blk_sub.cv, param)
: cv_dup(ncx->blk_sub.cv,param));
- ncx->blk_sub.argarray = (CxHASARGS(ncx)
- ? av_dup_inc(ncx->blk_sub.argarray,
- param)
- : NULL);
- ncx->blk_sub.savearray = (CxHASARGS(ncx)
- ? av_dup_inc(ncx->blk_sub.savearray,
- param)
- : NULL);
+ if(CxHASARGS(ncx)){
+ ncx->blk_sub.argarray = av_dup_inc(ncx->blk_sub.argarray,param);
+ ncx->blk_sub.savearray = av_dup_inc(ncx->blk_sub.savearray,param);
+ } else {
+ ncx->blk_sub.argarray = NULL;
+ ncx->blk_sub.savearray = NULL;
+ }
ncx->blk_sub.oldcomppad = (PAD*)ptr_table_fetch(PL_ptr_table,
ncx->blk_sub.oldcomppad);
break;
--
1.7.9.msysgit.0
|
From @tonycozOn Tue Apr 29 09:30:43 2014, bulk88 wrote:
"easier to read" Added as a 5.21.1 blocker. Tony |
The RT System itself - Status changed from 'new' to 'open' |
@tonycoz - Status changed from 'open' to 'resolved' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Migrated from rt.perl.org#121764 (status was 'resolved')
Searchable as RT121764$
The text was updated successfully, but these errors were encountered: