SCHEME FOR DETERMINING DATA OBJECT USAGE IN A MEMORY REGION
1 Assignment
0 Petitions
Accused Products
Abstract
Method and apparatus for managing memory is disclosed herein. In one embodiment, the method includes specifying a first load-monitored region within a memory, configuring a performance monitor to count object pointer accessed events associated with the first load-monitored region, executing a CPU instruction to load a pointer that points to a first location in the memory, responsive to determining that the first location is within the first load-monitored region, triggering an object pointer accessed event, updating a count of object pointer accessed events in the performance monitor, and performing garbage collection on the first load-monitored region based on the count of object pointer accessed events.
18 Citations
20 Claims
-
1-7. -7. (canceled)
-
8. A system, comprising:
-
a processor, comprising; a load-monitored region register; and a memory storing program code, which, when executed on the processor, performs an operation for managing memory, the operation comprising; specifying a load-monitored region within a memory by loading the specified load-monitored region into the load-monitored region register that is initialized to designate an area of memory to be evaluated; configuring a performance monitor to count object pointer accessed events occurring associated with the load-monitored region; executing a CPU instruction to load a pointer to a first region of memory;
responsive to determining that the first region is within the load-monitored region, triggering an object pointer accessed event;updating a count of object pointer accessed events in the performance monitor; and performing garbage collection on the load-monitored region based on the count of object pointer accessed events. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A computer readable storage medium having stored thereon instructions that when executed by a processor causes a processor to perform an operation for managing memory, comprising:
-
specifying a load-monitored region within a memory; configuring a performance monitor to count object pointer accessed events occurring associated with the load-monitored region; executing a CPU instruction to load a pointer to a first region of memory; responsive to determining that the first region is within the load-monitored region, triggering an object pointer accessed event; updating a count of object pointer accessed events in the performance monitor; and performing garbage collection on the load-monitored region based on the count of object pointer accessed events. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification