[haiku-development] Re: boehm-gc 6.6 for GCJ 4.3.3

  • From: "Michael Lotz" <mmlr@xxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 12 Oct 2009 18:05:00 +0200

Hi Michael

> default unix version.  This uses sbrk to ensure the memory starts on 
> a 4K
>
> What is the correct way to fix this?

I'd suggest using memalign(), posix_memalign() or valloc(). All should 
be able to align to the page size (assuming that's the reason for the 
4K alignment).

Regards
Michael

Other related posts: