🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #28362

Re: Megamax malloc()

#28362
From: braner
Date: Tue, 22 Sep 1987 15:14
14 lines
1346 bytes
[]

Megamax malloc() supposedly gets RAM from the OS in chunks no smaller than
8K.  It also never returns any RAM to the OS until the program exits.  (It
does, of course, reuse the allocated blocks if you free() them).  I have
not had problems with malloc() under Megamax yet, even under heavy use (in
microEMACS).  If you want to minimize malloc()'s use of Malloc() you can
temp=malloc(a bunch); free(temp); to start with, then proceed to malloc(little
bits).  The quantity "a bunch" should be more than 8K to help.  Unfortunately
it cannot be more than 64K since it is an unsigned int.

- Moshe Braner

PS: the rumors on the qualities of Megamax 2.0 sound _great_.  When?
Technical Details
Message-ID: <2424@batcomputer.tn.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!sunybcs!bingvaxu!leah!itsgw!batcomputer!braner
References: <214@stag.UUCP> <929@dclemans.mntgfx.MENTOR.COM>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!sunybcs!bingvaxu!leah!itsgw!batcomputer!braner
From: braner@batcomputer.tn.cornell.edu (braner)
Newsgroups: comp.sys.atari.st
Subject: Re: Megamax malloc()
Message-ID: <2424@batcomputer.tn.cornell.edu>
Date: Tue, 22-Sep-87 11:14:30 EDT
Article-I.D.: batcompu.2424
Posted: Tue Sep 22 11:14:30 1987
Date-Received: Thu, 24-Sep-87 04:49:50 EDT
References: <214@stag.UUCP> <929@dclemans.mntgfx.MENTOR.COM>
Reply-To: braner@tcgould.tn.cornell.edu (braner)
Organization: Cornell Theory Center, Cornell University, Ithaca NY
Lines: 14
Summary: easy to use