Implementation for collecting unmanaged memory
First Claim
Patent Images
1. A computer-readable medium having computer-executable instructions, comprising:
- storing a first time at which memory is allocated;
allocating additional memory at a second time;
determining a first elapsed time between the first and second times; and
if the first elapsed time is greater than or equal to a first threshold, causing a garbage collection of unreferenced memory blocks.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and system for garbage collecting managed and unmanaged memory that is no longer referenced. The time between allocations is compared with a threshold to determine if the garbage collector needs to collect unused memory. Unmanaged memory referenced by objects in the unused managed memory may be freed during the collection.
148 Citations
19 Claims
-
1. A computer-readable medium having computer-executable instructions, comprising:
-
storing a first time at which memory is allocated;
allocating additional memory at a second time;
determining a first elapsed time between the first and second times; and
if the first elapsed time is greater than or equal to a first threshold, causing a garbage collection of unreferenced memory blocks. - View Dependent Claims (2, 3, 4, 5, 6, 8, 9)
-
-
7. The computer-readable medium, wherein the first threshold is larger than a time in which a computer having the memory can allocate memory for images.
-
10. In a computing environment, a method, comprising:
-
creating an image object in managed memory, wherein a garbage collector collects unused memory in the managed memory;
creating image data referenced by the object in unmanaged memory; and
performing a garbage collection based at least in part on a time between allocations of image objects in the managed memory. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. In a computing environment, an apparatus, comprising:
-
a memory comprising a managed memory portion and an unmanaged memory portion;
a garbage collector arranged to collect unused memory from the unmanaged memory portion of the memory; and
an allocation monitor arranged to perform acts, comprising;
storing time data that indicates when memory is allocated for objects that reference data in the unmanaged memory and when a garbage collection occurs, causing the garbage collector to perform an additional garbage collection based on the time data. - View Dependent Claims (17, 18, 19)
-
Specification