Thread View: net.micro.mac
3 messages
3 total messages
Started by david fry
Fri, 03 Oct 1986 18:27
Memory compactification runs drive??
Author: david fry
Date: Fri, 03 Oct 1986 18:27
Date: Fri, 03 Oct 1986 18:27
15 lines
1263 bytes
1263 bytes
I've noticed that calls to the Toolbox routine MaxMem (which does heap compactification) cause my WhisperDrive(tm) hard drive to seek the System file. This is happening in an application I'm writing and with the Diskinfo DA if you select "Compact memory" (although that may call the CompactMem toolbox routine). It also happens from a floppy (startup) disk, but with my hard drive still connected. It doesn't seem to me as though this happened before. Why does the function call cause the program to access the System file? David Fry fry@huma1.harvard.EDU Department of Mathematics fry@harvma1.bitnet Harvard University fry%huma1@harvsc4.bitnet Cambridge, MA 02138 ...!harvard!huma1!fry
Re: Memory compactification runs drive??
Author: scott douglass
Date: Thu, 09 Oct 1986 18:47
Date: Thu, 09 Oct 1986 18:47
9 lines
1076 bytes
1076 bytes
The _MaxMem trap compacts the heap and purges all purgable blocks. Most
resources (including fonts) are (or should be) purgable. The next time
one of these resources is needed (to draw text, for instance) it will
have to be read in from disk. It's very likely that the disk access you
mention is in response to some _GetResource trap.
--
--scott douglass, Apple Computer
CSNet: scott@Apple.CSNet UUCP: {nsc, voder, well, dual}!apple!scott
"Laugh while you can, monkey boy!"
Re: Memory compactification runs drive??
Author: scott douglass
Date: Thu, 09 Oct 1986 18:53
Date: Thu, 09 Oct 1986 18:53
14 lines
1310 bytes
1310 bytes
In article <310@husc6.HARVARD.EDU> fry_b@husc4.UUCP (david fry) writes:
>I've noticed that calls to the Toolbox routine MaxMem (which does heap
>compactification) cause my WhisperDrive(tm) hard drive to seek the
>System file.
The _MaxMem trap compacts the heap and purges all purgable blocks. Most
resources (including fonts) are (or should be) purgable. The next time
one of these resources is needed (to draw text, for instance) it will
have to be read in from disk. It's very likely that the disk access you
mention is in response to some _GetResource trap.
--
--scott douglass, Apple Computer
CSNet: scott@Apple.CSNet UUCP: {nsc, voder, well, dual}!apple!scott
"Laugh while you can, monkey boy!"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads