🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #6883

Re: Stack Sniffer

#6883
From: Tim Maroney
Date: Fri, 22 Aug 1986 05:51
25 lines
1763 bytes
Tech Support confirms that setting StkLowPt to zero will disable the stack
sniffer.  However, the usual caution that using undocumented features such
as this one may cause incompatibilities with future system versions was
tacked on.

It does work, but unfortunately other parts of the system assume that the
stack will be above the application heap.  For instance, the Memory Manager
ordinarily expands the application heap zone whenever a pointer or handle is
allocated and there is not enough room.  It will only do this if ApplLimit
is greater than HeapEnd, and if the stack pointer is *above* ApplLimit (by
at least MinStack).  The code that checks this may be found at 0x410884 in
the new ROMs.  It may be possible to get around this by setting MinStack to
a large negative value, but this might further confuse the Mac.  I haven't
tried yet.

In any case, I find this all to be rather annoying.  The extra code required
to deal with different memory configurations of processes would be trivial.
In a memory managed system, one would want the positions of stack and heap
to be logically independent.  Grumble grr....
-- 
Tim Maroney, Electronic Village Idiot
{ihnp4,sun,well,ptsfa,lll-crg,frog}!hoptoad!tim (uucp)
hoptoad!tim@lll-crg (arpa)

These are the official opinions of the Vatican Council of Bishops.
Technical Details
Message-ID: <1031@hoptoad.uucp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!hoptoad!tim

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!lll-crg!hoptoad!tim
From: tim@hoptoad.uucp (Tim Maroney)
Newsgroups: net.micro.mac
Subject: Re: Stack Sniffer
Message-ID: <1031@hoptoad.uucp>
Date: Fri, 22-Aug-86 01:51:00 EDT
Article-I.D.: hoptoad.1031
Posted: Fri Aug 22 01:51:00 1986
Date-Received: Fri, 22-Aug-86 08:20:08 EDT
Organization: Centram Systems, Berkeley
Lines: 25