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

Re: sv_grow() and malloc()

Thread Previous | Thread Next
From:
Aaron Crane
Date:
September 23, 2014 13:46
Subject:
Re: sv_grow() and malloc()
Message ID:
CACmk_ttNDpb_Goac_mwRmoWzRRAhP4r-KvxnaBdTvpNiDAiDmg@mail.gmail.com
Dave Mitchell <davem@iabyn.com> wrote:
> I'd be interested in what people get with that code on other OSes.

Of things that haven't been mentioned yet, Linux i386, glibc 2.13:

after  12 bytes realloc() using different address
after  20 bytes realloc() using different address
after  28 bytes realloc() using different address
after  36 bytes realloc() using different address
after  44 bytes realloc() using different address
after  52 bytes realloc() using different address
after  60 bytes realloc() using different address
after  68 bytes realloc() using different address
after  76 bytes realloc() using different address
after  84 bytes realloc() using different address
after  92 bytes realloc() using different address
after 100 bytes realloc() using different address
after 108 bytes realloc() using different address
after 116 bytes realloc() using different address
after 124 bytes realloc() using different address

which is every 8 bytes starting from 12.

Linux x86-64 gives me the same results as you quote for your system.

-- 
Aaron Crane ** http://aaroncrane.co.uk/

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