Article View: comp.sys.atari.st
Article #33610Re: Another great quote from Mr. Good
From: Ross Alexander
Date: Tue, 16 Aug 1988 08:45
Date: Tue, 16 Aug 1988 08:45
37 lines
1888 bytes
1888 bytes
[fancy line-eater line down for preventative maintenance; call later]
In recent articles, Roy J. Good @ Atari and others discuss the Malloc
problem (qv). May I suggest the following solution:
1) build a proper version of Malloc (MallocP for "malloc
patched" comes to mind). Assign it a TOS-call number, and
give it reasonable semantics; Un*x semantics are as
reasonable as any [ :-) :-) ].
2) use this reasonable allocator as a foundation for a
version broken in exactly the same ways as the current TOS
version. That is, it obeys the assumptions that people are
making about the current allocator (that it's okay to
exceed your chunk, that chunks are contiguous, et al.), and
make this broken allocator available through the old
TOS-call number.
3) encourage people to use the new allocator; they will
because it's no longer broken, right ?
4) after a while, make the old entry point go away (if you
want).
Now, this may be a little tricky. You might have to compromise
some functionality in the back-compatibility entry-point version.
For instance, it might be only able to allocate 1/3 or 1/2 of the
total available free memory (here's a reason to use the upgraded
entry point :-).
I don't know if this is THE answer, but it might be AN answer.
Comments ?
--
Ross Alexander @ Athabasca University
<the-known-world>!alberta!auvax!rwa
Technical Details
Message-ID:
<692@auvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!ubc-cs!alberta!auvax!rwaReferences:
<1116@atari.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!ubc-cs!alberta!auvax!rwa From: rwa@auvax.UUCP (Ross Alexander) Newsgroups: comp.sys.atari.st Subject: Re: Another great quote from Mr. Good Summary: Malloc problem suggestion... Message-ID: <692@auvax.UUCP> Date: 16 Aug 88 08:45:40 GMT References: <1116@atari.UUCP> Distribution: comp Organization: Athabasca U., Alberta, Canada Lines: 37