This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c216444
)
Fix EXTEND changes under STRESS_REALLOC
author
Steffen Mueller
<smueller@cpan.org>
Wed, 28 May 2014 12:11:40 +0000
(14:11 +0200)
committer
Steffen Mueller
<smueller@cpan.org>
Wed, 28 May 2014 12:12:00 +0000
(14:12 +0200)
As part of
aad79b331c21c962b6e0ce7b8027aa625d7445ec
, -DSTRESS_REALLOC was broken.
This should alleviate that.
pp.h
patch
|
blob
|
blame
|
history
diff --git
a/pp.h
b/pp.h
index
09d8bb1
..
3aff1a1
100644
(file)
--- a/
pp.h
+++ b/
pp.h
@@
-274,11
+274,11
@@
Does not use C<TARG>. See also C<XPUSHu>, C<mPUSHu> and C<PUSHu>.
# define EXTEND(p,n) STMT_START { \
sp = stack_grow(sp,p,(SSize_t) (n)); \
PERL_UNUSED_VAR(sp); \
- }
}
STMT_END
+ } STMT_END
/* Same thing, but update mark register too. */
# define MEXTEND(p,n) STMT_START { \
const int markoff = mark - PL_stack_base; \
- sp = stack_grow(sp,p,(SSize_t) (n))
);
\
+ sp = stack_grow(sp,p,(SSize_t) (n))
;
\
mark = PL_stack_base + markoff; \
PERL_UNUSED_VAR(sp); \
} STMT_END