summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-04-02 21:03:33 +0000
committerNicholas Clark <nick@ccl4.org>2008-04-02 21:03:33 +0000
commitd7c46615e08f67a5be4cde90a507751260ed28ac (patch)
treef7f0bf83af75e868086e3b2a63e73db7ddde6d20 /sv.c
parent9df53a21af8cfd9b4c3eeacae85d04aa4e121ff1 (diff)
downloadperl-d7c46615e08f67a5be4cde90a507751260ed28ac.tar.gz
In Perl_sv_grow(), no need to do PERL_STRLEN_ROUNDUP() if we have
malloc_size() to get the true allocated space, as PERL_STRLEN_ROUNDUP() might actually bump the request across an allocation size boundary. p4raw-id: //depot/perl@33632
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 03925a48b8..96ef7c8340 100644
--- a/sv.c
+++ b/sv.c
@@ -1492,7 +1492,7 @@ Perl_sv_grow(pTHX_ register SV *const sv, register STRLEN newlen)
s = SvPVX_mutable(sv);
if (newlen > SvLEN(sv)) { /* need more room? */
-#ifndef MYMALLOC
+#ifndef Perl_safesysmalloc_size
newlen = PERL_STRLEN_ROUNDUP(newlen);
#endif
if (SvLEN(sv) && s) {