CanRunOutOfMemory |
|
|
AnnounceOutOfMemory AttemptMemoryRecoveryIn CheckPendingLowOnMemoryOften HandlePendingLowOnMemory HandlePendingOutOfMemory |
|
PendingLowOnMemory |
Define Class CanRunOutOfMemory; mixes in with Object; attribute PendingLowOnMemory: Boolean, noGetter, noSetter; // corresponding heap in low memory state, we are about to handle // inheritor hooks up with actual heap and returns true if // emergency buffer used but not yet in low on memory state operation HandlePendingLowOnMemory(), noMethod; // announce, advance to low on memory state operation CheckPendingLowOnMemoryOften(): Boolean, noMethod; // see if low on memory is pending, processs if true, advance state to low on memory operation HandlePendingOutOfMemory(), noMethod; // call when pending out of memory, advances to out of memory state, // does all container local handling operation AnnounceOutOfMemory(), noMethod; // call to spread the word about out of memory operation AttemptMemoryRecoveryIn(): Boolean, noMethod; // attempts to recover from both out and/or low on memory, returns true if container // is no longer in low on memory end class;