develooper Front page | perl.perl5.porters | Postings from September 2014

Re: sv_grow() and malloc()

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
September 23, 2014 19:02
Subject:
Re: sv_grow() and malloc()
Message ID:
20140923190241.GA29760@fractal.phys.lafayette.edu
On Tue, Sep 23, 2014 at 06:10:45PM +0100, Steve Hay wrote:
> On 23 September 2014 13:30, Dave Mitchell <davem@iabyn.com> wrote:
> > I'd be interested in what people get with that code on other OSes.

Solaris 8 (ancient!) 32-bit SPARC:

after   8 bytes realloc() using different address
after  16 bytes realloc() using different address
after  24 bytes realloc() using different address
after  32 bytes realloc() using different address
after  40 bytes realloc() using different address
after  48 bytes realloc() using different address
after  56 bytes realloc() using different address
after  64 bytes realloc() using different address
after  72 bytes realloc() using different address
after  80 bytes realloc() using different address
after  88 bytes realloc() using different address
after  96 bytes realloc() using different address
after 104 bytes realloc() using different address
after 112 bytes realloc() using different address
after 120 bytes realloc() using different address
after 128 bytes realloc() using different address

Solaris 8 (also ancient!) 64-bit SPARC:

after  16 bytes realloc() using different address
after  32 bytes realloc() using different address
after  48 bytes realloc() using different address
after  64 bytes realloc() using different address
after  80 bytes realloc() using different address
after  96 bytes realloc() using different address
after 112 bytes realloc() using different address
after 128 bytes realloc() using different address

(various optimization flags didn't seem to make any difference
here.)

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Previous | Thread Next


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