Time-based object aging for generational garbage collectors
AssigneeOracle International Corporation
InventorsCharlie Hunt, Antonios Printezis, Staffan Friberg
Life of this patent
Estimating the term…
Abstract
System and Methods for time-based object aging for generational garbage collectors are provided. Time data is received from a user identifying the amount of time an object should survive in a generation defined in a heap. A circular buffer is generated to store a plurality of starting time for a plurality of garbage collections. Generational garbage collection is performed, and the time data in conjunction with the starting times stored in the circular buffer are used to determine when objects are promoted from one generation to the next oldest generation.
Claims21
A method for time-based object aging generational garbage collection comprising:
- receiving, using at least one processor, a time tenuring threshold specifying a time a plurality of objects survive in a memory;
- receiving, using the at least one processor, a plurality of time stamps corresponding to a plurality of garbage collections, each time stamp of the plurality of time stamps including a start time of a particular garbage collection of the plurality of garbage collections;
- calculating, using the at least one processor, an object tenure age threshold based on the plurality of time stamps and the time tenuring threshold, the object tenure age threshold specifying whether a particular object of a plurality of objects is promoted;
- promoting, using the at least one processor, at least one object of the plurality of objects when an object age corresponding to the at least one object meets the object tenure age threshold.
(canceled)
A system for time-based object aging generational garbage collection comprising:
- at least one processor;
- a memory in operable communication with the at least one processor;
- and
- a time-based object aging generational garbage collection application comprising modules executable by the processor, the modules comprising:
- a receiving module to:
- receive a time tenuring threshold specifying a time a plurality of objects survive in a memory;
- and
- receive a plurality of time stamps corresponding to a plurality of garbage collections, each time stamp of the plurality of time stamps including a start time of a particular garbage collection of the plurality of garbage collections;
- an age calculation module to:
- calculate an object tenure age threshold based on the plurality of time stamps time data and the time tenuring threshold, the object tenure age threshold specifying whether a particular object of a plurality of objects is promoted;
- and
- an object promotion module to promote at least one object of the plurality of objects when an object age corresponding to the at least one object meets the object tenure age threshold.
(canceled)
A computer-readable medium encoded with time-based object aging generational garbage collection application comprising modules executable by a processor, the modules comprising:
- a receiving module to:
- receive a time tenuring threshold specifying a time a plurality of objects survive in a memory;
- and
- receive a plurality of time stamps corresponding to a plurality of garbage collections, each time stamp of the plurality of time stamps including a start time of a particular garbage collection of the plurality of garbage collections;
- an age calculation module to:
- calculate an object tenure age threshold based on the plurality of time stamps and the time tenuring threshold, the object tenure age threshold specifying whether a particular object of a plurality of objects is promoted;
- and
- an object promotion module to promote at least one object of the plurality of objects when an object age corresponding to the at least one object meets the object tenure age threshold.
(canceled)
Dependencies are inferred from the claim text.