Article View: comp.sys.mac
Article #17159Re: Terror Stalks the Soul of a New Machine
From: Marc Hannah
Date: Fri, 03 Jul 1987 17:47
Date: Fri, 03 Jul 1987 17:47
26 lines
2065 bytes
2065 bytes
In article <1593@batcomputer.tn.cornell.edu>, saunders@batcomputer.tn.cornell.edu (kevin eric saunders) writes:
>
> Kudos to the dear soul who noted that multitasking on the Mac
> could be saved from MapRgn()'s habit of ravishing the "free space"
> between HeapEnd and the stack pointer (which will contain your
> code if you allocate new stacks in the heap!) by the simple
> expedient of resetting HeapEnd to the base of your stack.
> (Sounds scary, but it works....)
>
> Or it did. Alas, perusing the shattered hulk of our application
> on the Mac II with MacsBug, it seems such bars will no longer
...
> Gee, and it still works fine on an SE. Suggestions, anyone?
...
> kevin
I never understood how that HeapEnd resetting could possibly
work. It seemed to me that the memory manager would be constantly
adjusting the value of HeapEnd OR that you might confuse the allocation
of new memory by using bogus values for HeapEnd. Changing the value
arbitrarily implies for this purpose implied that HeapEnd was only
used by QuickDraw.
In any case, it is of no surprise to me that the Mac II might blow
away that kind of kludge. Quickdraw has been changed (extended) and one
might imagine that taking advantage of old 'features' in Classic Quickdraw
could cause problems.
David Gelphman daveg%slacvm.bitnet@forsythe.stanford.edu
Technical Details
Message-ID:
<1833@Shasta.STANFORD.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!sri-spam!ames!ucbcad!ucbvax!decvax!decwrl!labrea!Shasta!mrhReferences:
<1593@batcomputer.tn.cornell.edu>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!seismo!rutgers!sri-spam!ames!ucbcad!ucbvax!decvax!decwrl!labrea!Shasta!mrh From: mrh@Shasta.STANFORD.EDU (Marc Hannah) Newsgroups: comp.sys.mac Subject: Re: Terror Stalks the Soul of a New Machine Message-ID: <1833@Shasta.STANFORD.EDU> Date: Fri, 3-Jul-87 13:47:15 EDT Article-I.D.: Shasta.1833 Posted: Fri Jul 3 13:47:15 1987 Date-Received: Sat, 4-Jul-87 14:28:50 EDT References: <1593@batcomputer.tn.cornell.edu> Organization: Stanford University Lines: 26 Keywords: MapRgn(), 7fff, "The Slasher," Murder, Psych-Out 129 Summary: color quickdraw may very well work quite differently