Go to the FreeLists Home Page Home Signup Help Login
 



[haiku-development] || [Date Prev] [08-2007 Date Index] [Date Next] || [Thread Prev] [08-2007 Thread Index] [Thread Next]

[haiku-development] Re: Help with memory allocation in WebKit JavaScriptCore

  • From: "Ryan Leavengood" <leavengood@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 15 Aug 2007 23:55:57 -0400
On 8/15/07, Bryan Varner <bryan@xxxxxxxxxxxxx> wrote:
>
> I think something like...
>
> #elif PLATFORM(HAIKU)
>     void *address = memalign(BLOCK_SIZE, BLOCK_SIZE);
>     memset(reinterpret_cast<void*>(address), 0, BLOCK_SIZE);
> #else
>    ...
>
> might just do the trick.
>
> I'm not kernel guru, but hopefully this gets you somewhere.

Well it makes sense and compiles, which works great for me at the
moment! Testing will come later. Thanks Bryan!

Ryan





[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.