Patent ID: 7730278
Filing Date: 2010-06-01
Classification: G06F

Abstract:
1. A machine-implemented method performed during runtime by a Java Virtual Machine (JVM) process, comprising: allocating a first range of virtual memory addresses to be used for a first chunk of a heap; allocating a second range of virtual memory addresses to be used for a second chunk of the heap, wherein the first and the second ranges of virtual memory addresses are not contiguous, and wherein the second chunk of the heap is configured to store Java objects; storing a set of executable instructions within the second chunk, wherein the set of executable instructions is stored at a predetermined offset within the second range of virtual memory addresses, wherein the set of executable instructions, when executed, is operable to perform one or more operations that are specific to the second chunk, wherein the set of executable instructions is a write barrier code associated with the second chunk, and wherein the write barrier code is invoked when an operation is performed to store an object pointer into any Java object stored in the second chunk; accessing the set of executable instructions within the second chunk based at least in part on the predetermined offset; and executing the set of executable instructions to perform the one or more operations that are specific to the second chunk.