US 11,789,863 B2
On-the-fly remembered set data structure adaptation
Thomas Schatzl, Linz (AT); and Ivan Walulya, Kungälv (SE)
Assigned to Oracle International Corporation, Redwood Shores, CA (US)
Filed by Oracle International Corporation, Redwood Shores, CA (US)
Filed on Jul. 7, 2021, as Appl. No. 17/369,447.
Prior Publication US 2023/0019686 A1, Jan. 19, 2023
Int. Cl. G06F 12/02 (2006.01)
CPC G06F 12/0253 (2013.01) [G06F 2212/7205 (2013.01)] 20 Claims
OG exemplary drawing
 
1. One or more non-transitory computer readable media comprising instructions which, when executed by one or more hardware processors, causes performance of operations comprising:
initiating execution of an application thread;
initiating execution of a garbage collection process for a plurality of objects in a heap memory, the heap memory including a first plurality of logical partitions, wherein each logical partition of the first plurality of logical partitions is associated with a remembered set data structure,
wherein, for each particular logical partition of the first plurality of logical partitions, the corresponding remembered set data structure stores a set of addresses that (a) are external to the particular logical partition, and (b) include a reference to an object stored in the particular logical partition;
while the application thread and the garbage collection process are executing:
determining, by the garbage collection process, a set of characteristics corresponding to one or more of: (a) the executing application thread, (b) the plurality of logical partitions, or (c) the computing environment in which the application thread is executing;
based on the set of characteristics meeting threshold criteria for adjusting a first remembered set data structure corresponding to a first logical partition:
identifying a first remembered set configuration corresponding to the first remembered set data structure;
creating a replacement remembered set data structure based on the first remembered set configuration;
associating the replacement remembered set data structure with the first logical partition.