[haiku-gsoc] Re: Implementation Queries

  • From: Vivek Roy <vivekroyandroid@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Thu, 29 Jun 2017 22:26:57 +0530

What I read about heap_init() is that after a heap_init using normal
mallocs will allocate memory on the heap. I do not want this behaviour. For
example I have done a heap_init() in linux/slab.h. So every malloc which
will be called after that will use up the heap space. I do not want that.
But all the mallocs inside linux/slab.h should be done on the heap. How do
I get such results? guarded_heap ?

Thanks

On Wed, Jun 28, 2017 at 9:49 PM, Vivek Roy <vivekroyandroid@xxxxxxxxx>
wrote:



Vivek, you could probably reuse parts of the boot loader's heap
implementation for that; it's very simplistic. If you need something more
advanced, I guess one of the debug heaps could be helpful, too.

Could you point me to some documentation?


Other related posts: