www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/01/13:49:42

Message-ID: <352299EA.5F1FF492@johnbryce.co.il>
Date: Wed, 01 Apr 1998 22:47:54 +0300
From: Noam Rotem <nrotem AT johnbryce DOT co DOT il>
Organization: John Bryce Training Centre L.T.D
MIME-Version: 1.0
To: "John M. Aldrich" <fighteer AT cs DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: malloc & free
References: <352140E9 DOT D07CEE53 AT krona DOT obninsk DOT ru> <3521822F DOT 6B13 AT cs DOT com>

John M. Aldrich wrote:

> The answer is quite simple:  DJGPP's malloc()/free() does not return
> freed memory blocks to the system; it keeps track of them for possible
> reuse later.  At program termination, all allocated memory is returned
> to the DPMI host.

Is it faster to reuse freed memory than asking the dpmi server for it again?

---------------------------------------------
Noam Rotem
John Bryce Training Centre
Tel Aviv, Israel.
03-7535803
=============================================


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019