Speicherverwaltung bei Linux

Florian Lohoff flo at rfc822.org
Fri Oct 6 11:41:45 CEST 2000


On Thu, Oct 05, 2000 at 09:37:44PM +0200, Christian Weddeling wrote:
> Hallo!
> 
> Wenn ich unter C++ ein new char [4096] mache, wieviel Speicher
> wird dann wiklich verwendet?
> 
> Ich koennte mir vorstellen, dass C++ 4 Bytes fuer die Laenge des
> Arrays benoetigt, um nachher ein delete[] machen zu koennen. Aber
> was bleibt noch zusaetzlich alles im Kernel haengen?

Probier doch mal strace/ltrace oder "electric-fence" oder aehnliche
malloc debugger..

Flo
-- 
Florian Lohoff		flo at rfc822.org		      	+49-5201-669912
      "Write only memory - Oops. Time for my medication again ..."





More information about the Linux mailing list