Method and Apparatus for Referencing a Constant Pool in a Java Virtual Machine
AssigneeInternational Business Machines Corporation
InventorsPeter Wiebe Burka, Graham Alan Chapman, Trent A. Gray-Donald, Karl Michael Taylor
Life of this patent
Estimating the term…
Abstract
A method, apparatus, and computer instructions for referencing a constant pool. A determination is made as to whether a bytecode references the constant pool. A relative offset to the constant pool is identified for the bytecode, in response to the bytecode referencing the constant pool. The bytecode is then replaced with a new bytecode containing the relative offset. The relative offset is used to reference the constant pool.
Claims16
1-7. (canceled)
A data processing system for referencing a constant pool, the data processing system comprising:
- a bus;
- a communications unit connected to the bus;
- a storage device connected to the bus, wherein the storage device includes computer usable program code;
- and
- a processor unit connected to the bus, wherein the processor unit executes the computer usable program code to determine whether a bytecode references the constant pool, responsive to the bytecode referencing the constant pool, to identify a relative offset to the constant pool for the bytecode using a size of each method pointer and a number of method pointers present between a current method pointer for the bytecode and a beginning of the constant pool, wherein the relative offset is a number of slots separating the bytecode and the constant pool, and to replace the bytecode with a new bytecode containing the relative offset, wherein the relative offset is used to reference the constant pool.
(canceled)
A computer program product stored in a recordable-type medium for referencing a constant pool, the computer program product comprising:
- first instructions for determining whether a bytecode references the constant pool;
- second instructions, responsive to the bytecode referencing the constant pool, for identifying a relative offset to the constant pool for the bytecode using a size of each method pointer and a number of method pointers present between a current method pointer for the bytecode and a beginning of the constant pool, wherein the relative offset is a number of slots separating the bytecode and the constant pool;
- and
- third instructions for replacing the bytecode with a new bytecode containing the relative offset, wherein the relative offset is used to reference the constant pool.
(canceled)
(canceled)
Dependencies are inferred from the claim text.