Re: [gtk-list] O.S. memory usage



On Wed, Mar 08 (2000), Derek Simkowiak wrote:
[...]
> pointer = g_malloc(LOTS_OF_RAM);
> 
> 	...and then, later on, does
> 
> g_free(pointer);
> 
> 	Does that memory immediately go back to the O.S.?

Hello all, I'm new to this list :)).

No it doesn't. But g_malloc is a wrapper for libc malloc (I guess :-)),
haven't checked) and you can tune it (at least in GNU libc). See info
libc:
info '(libc.info)Efficiency and Malloc'
info '(libc.info)Malloc Tunable Parameters'
					Best regards
-- 
    ____   _  ___
   /  | \_/ |/ _ \		Andrzej Marek Ostruszka
  / _ |     | (_) | Instytut Fizyki, Uniwersytet Jagiellonski (Cracow)
 /_/ L|_|V|_|\___/	(PGP <-- finger ostruszk@order.if.uj.edu.pl)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]