develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #46381] "Out of memory ... sbrk()" on FreeBSD-6.x for v.5.8.x but not v.5.6.x

Thread Previous
From:
Rafael Garcia-Suarez
Date:
June 21, 2008 07:33
Subject:
Re: [perl #46381] "Out of memory ... sbrk()" on FreeBSD-6.x for v.5.8.x but not v.5.6.x
Message ID:
b77c1dce0806210733s18c5aa36odef41369436d932@mail.gmail.com
2007/10/26 Slaven Rezic <slaven@rezic.de>:
> Here the revised patch:
>
> --- ../bleedperl-amd64/malloc.c Mon Apr 16 01:25:50 2007
> +++ ./malloc.c  Fri Oct 26 16:14:10 2007
> @@ -2285,6 +2285,8 @@ Perl_realloc(void *mp, size_t nbytes)
>                nmalloc[bucket]--;
>                nmalloc[pow * BUCKETS_PER_POW2]++;
>  #endif
> +               if (pow * BUCKETS_PER_POW2 > max_bucket)
> +                   max_bucket = pow * BUCKETS_PER_POW2;
>                *(cp - M_OVERHEAD) = pow * BUCKETS_PER_POW2; /* Fill index. */
>                MALLOC_UNLOCK;
>                goto inplace_label;

Thanks, applied as #34076.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About