🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5075

Re: Memory Protection!

#5075
From: Jay Dresser
Date: Wed, 29 Aug 1990 22:45
13 lines
1101 bytes
My solution to lost memory was rather straightforward.  I allocate
memory through my routines which alloc from chunks I get from
AllocEntry.  I then append the MemEntry to the list maintained in the
Task structure.  This memory is automatically freed by the system when
the task exits.  Thus no more lost memory.  This seems to me the way it
was meant to be.

This I wrote after implementing a more general cleanup system that
keeps track of alloced memory, open files, open libraries, or anything
else that needs to be undone when exiting.  I never have any hanging
anything.

Jay
Technical Details
Message-ID: <3762@tymix.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!olivea!tymix!altair!jdresser
References: <1145.26bd4989@waikato.ac.nz> <1410050@hpcvca.CV.HP.COM> <6423@sugar.hackercorp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!olivea!tymix!altair!jdresser
From: jdresser@altair.uucp (Jay Dresser)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Memory Protection!
Message-ID: <3762@tymix.UUCP>
Date: 29 Aug 90 22:45:14 GMT
References: <1145.26bd4989@waikato.ac.nz> <1410050@hpcvca.CV.HP.COM> <6423@sugar.hackercorp.com>
Sender: usenet@tymix.UUCP
Reply-To: jdresser@altair.Tymnet.com (Jay Dresser)
Organization: BT Tymnet, Inc. / San Jose, CA
Lines: 13