[comp.sys.mac.programmer] Exit To Application/Memory Movement at Interrupt time...

sonenbli@oxy.edu (Andrew D. Sonenblick) (11/13/89)

Two Questions: is it possible to execute an "ea" command (Exit to
Appliction) from within a program?  Does debugging software that supports
the ea function need to be installed if so?

Also, why is it "illegal" to move memory at interrupt time?

Ando Sonenblick: sonenbli@oxy.edu

keith@Apple.COM (Keith Rollin) (11/15/89)

In article <60384@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes:

>Also, why is it "illegal" to move memory at interrupt time?

What if you interrupt the Memory Manager while it was moving memory or compact-
ing the heap. You would try to re-enter it while in an inconsistant state. The
alternative to this would be to turn off interrupts while the Memory Manager
was in this state, but that would mean that interrupts would be turned off a
LOT.


-- 
------------------------------------------------------------------------------
Keith Rollin  ---  Apple Computer, Inc.  ---  Developer Technical Support
INTERNET: keith@apple.com
    UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith
"Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions