Patent ID: 7490117

Claim:
An article comprising a machine-accessible medium having stored thereon instructions that, when executed by a machine, cause the machine to: obtain, from a performance monitor, performance data for a memory heap having a plurality of memory regions; based on the performance data, determine if at least one of the plurality memory regions is a delinquent region, wherein said determining includes instructions that when executed cause the machine to count the number of occurrences of the performance data and to compare the count of the number of occurrences of the performance data to a threshold value, wherein if the count has reached the threshold value a delinquent region is determined to exist, wherein the performance data represents at least one memory performance event; in response to a determination that at least one of the plurality of memory regions is a delinquent region, execute a memory management routine to optimize that region of the memory heap by executing a garbage collection routine on at least one delinquent region, the garbage collection routine re-arranging the plurality of memory regions stored in the memory heap to optimize the memory heap; and execute a secondary memory management routine on at least one non-delinquent region, wherein the secondary memory management routine is different than the memory management routine.