Patent ID: 8516019

Claim:
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 and wherein calculating the object tenure age threshold comprises: storing, at the at least one processor, each time stamp of the plurality of time stamps in a circular buffer; determining, at the at least one processor, an elapsed time value for each time stamp of the plurality of time stamps stored in the circular buffer and a time stamp of a current garbage collection; identifying a youngest index slot in the circular buffer where the corresponding elapsed time value is equal to or greater than the time tenuring threshold; and setting the tenure age to the youngest index slot+1; and 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.