Change 34263 by [EMAIL PROTECTED] on 2008/09/04 08:55:53
Integrate:
[ 34076]
Subject: Re: [perl #46381] "Out of memory ... sbrk()" on FreeBSD-6.x
for v.5.8.x but not v.5.6.x
From: Slaven Rezic <[EMAIL PROTECTED]>
Date: 26 Oct 2007 16:58:55 +0200
Message-ID: <[EMAIL PROTECTED]>
[ 34078]
Subject: [PATCH] Fix malloc.c warning
From: "Jerry D. Hedden" <[EMAIL PROTECTED]>
Date: Mon, 23 Jun 2008 09:41:11 -0400
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
... //depot/maint-5.10/perl/malloc.c#5 integrate
Differences ...
==== //depot/maint-5.10/perl/malloc.c#5 (text) ====
Index: perl/malloc.c
--- perl/malloc.c#4~33943~ 2008-05-28 08:54:22.000000000 -0700
+++ perl/malloc.c 2008-09-04 01:55:53.000000000 -0700
@@ -2293,6 +2293,8 @@
nmalloc[bucket]--;
nmalloc[pow * BUCKETS_PER_POW2]++;
#endif
+ if (pow * BUCKETS_PER_POW2 > (MEM_SIZE)max_bucket)
+ max_bucket = pow * BUCKETS_PER_POW2;
*(cp - M_OVERHEAD) = pow * BUCKETS_PER_POW2; /* Fill index. */
MALLOC_UNLOCK;
goto inplace_label;
End of Patch.