Has anybody else run into the problem of Perl's malloc() (which by default
overloads the system malloc()) aligning memory improperly, at least with
regards to the default alignment of the platform?

On my Mandrake x86 box Perl's malloc() is aligning on 4 byte boundaries.
However, glibc aligns on 8 byte boundaries. Isn't it more reasonable for
Perl to also align on 8 bytes?

I have my own memory pool/arena implementation which got bit by this when
used with some XS code. It was expecting malloc() to always return on 8 byte
boundaries, an expectation which broke when Perl got loaded.

- Bill

Reply via email to