[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CompactMem from a CDA
David A Lyons <dlyons@apple.com> writes:
>The interrupt manager incremented a flag at $E100CB to indicate that the
>system is in an interrupted state. CompactMem checks that flag and does
>nothing if it's nonzero, because the system is not allowed to move memory
>blocks at interrupt time (that is, software is allowed to assume that
>unlocked blocks of memory move only during system calls).
You mean if I won't be making any toolbox or GS/OS calls I don't need to
lock a block before I use it?? I've been locking them even if I need only
a word or something.
Although... No, it wouldn't work. If a context switch were to occur while I
was using the block some other process could make it move around.
Guess I'll just keep on doing it the way I always have.
______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | Suicide (n.): What to do if Macs |
|________________|________________|_______________take over the world__|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~