Specializing write-barriers for objects in a garbage collected heap
AssigneeSun Microsystems, Inc.
InventorsAlexander T. Garthwaite, David L. Detlefs
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorsAlexander T. Garthwaite, David L. Detlefs
Estimating the term…
A technique is provided for reducing the number of write barriers executed in mutator code without compromising garbage collector performance. Advantageously, a compiler generates two forms of a mutator code—a first version with write barriers and a second version substantially without write barriers. In operation, the first version of the code may be accessed by a vtable in a “mature” near-class and the second version may be accessed by a vtable in a “nascent” near-class. According to the invention, mapping of functionally equivalent points in the first and second versions of the mutator code may be facilitated by an associated pcmap. Further, each of the first and second versions may also be associated with a respective nr_map that facilitates mapping functionally equivalent points within different branches of guard code sequences corresponding to reference-writes to non-receiver objects.
In a computer system, a method for controlling the execution of write-barrier program code when a mutator program calls a reference-modifying method of a receiver object via a class pointer field, the method comprising:
A computer system for controlling the execution of write-barrier program code when a mutator program calls a reference-modifying method of a receiver object via a class pointer field, the system comprising:
An apparatus operable in a computer system having a memory for controlling the execution of write-barrier program code when a mutator program executing in the memory calls a reference-modifying method of a receiver object via a class pointer field, the apparatus comprising:
Dependencies are inferred from the claim text.