Patent ID: 7761487

Claim:
A computer-implemented method for managing memory, comprising: creating at least one object of a first type during a runtime of an application, a memory space is allocated for storing the at least one object and other objects of at least one other type which are created during the runtime of the application; performing a garbage collecting process which is designed to clear the at least one object of the first type from the memory space when the memory space is close to an out-of-memory condition, wherein the first type is a type which is eligible to be cleared from the memory space by the garbage collecting process when the memory space is close to the out-of-memory condition, and the at least one other type is a type which is not eligible to be cleared from the memory space even when the memory space is close to the out-of-memory condition; determining whether the at least one object of the first type has been cleared from the memory space by the garbage collecting process; and reporting regarding whether the memory space is close to the out-of-memory condition, responsive to the determining.