[haiku-appserver] Re: Shared Memory Allocation

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Sun, 05 Sep 2004 14:01:32 +0200 CEST

Adi Oanca <adioanca@xxxxxxxxx> wrote:
>       IMHO: from the start BApplication should have a shared area with 
> app_server - small one start. All shared objects should store, from 
> the 
> start, their data in that area. The area will grow as needed and 
> shrink 
> to a predefined value if, for 15 seconds or so, only <=50% of it is 
> used.

While shrinking an area is no problem, growing it usually is (using 
resize_area()).
There is no guaranty that the address space after that area is still 
available in which case the function will fail.

Bye,
   Axel.


Other related posts: