Detection of out-of-memory and graceful shutdown
AssigneeResearch In Motion Limited
InventorAhmed Hassan
Life of this patent
Estimating the term…
Abstract
A method, system and computer readable medium for managing low memory in a first computing device are provided. The system is configured to cause part of the memory allocated to a specialized application to be held in reserve so that it can be used to support the specialized application during an occurrence of low memory, thus providing time for data backup or remedial steps to be carried out before the affected application crashes.
Claims25
A method for managing low memory in a first computing device having a processor for executing an operating system and an application, and a memory available to the operating system and application, the operating system being configured to issue a first out-of-memory exception in the event that available memory for the application falls below a first pre-determined threshold, the method comprising:
- reserving, for future use by the application, within a block of memory a first reserve buffer that is unavailable for any use until released;
- and
- releasing the first reserve buffer for use by the application upon detecting the first out-of-memory exception generated by the operating system.
A system for managing low memory on a first computing device having a processor for executing an operating system and an application, and a memory available to the operating system and application, the operating system being configured to issue a first out-of-memory exception in the event that available memory for the application falls below a first pre-determined threshold, the system comprising:
- a low memory manager configured to reserve, for future use by the application, within a block of memory a first reserve buffer that is unavailable for any use until released, and release the first reserve buffer for use by the application upon detecting the first out-of-memory exception generated by the operating system.
A computer program product comprising a computer readable storage medium having stored thereon computer program instructions for managing low memory in a first computing device having a processor for executing an operating system and an application, and a memory available to the operating system and application, the operating system being configured to issue a first out-of-memory exception in the event that available memory for the application falls below a first pre-determined threshold, the computer executable instructions comprising instructions for:
- reserving, for future use by the application, within a block of memory a first reserve buffer that is unavailable for any use until released;
- releasing the first reserve buffer for use by the application upon detecting the first out-of-memory exception.
Dependencies are inferred from the claim text.