Mapping a stack in a stack machine environment
AssigneeInternational Business Machines Corporation
InventorsGraham Chapman, John Duimovich, Trent Gray-Donald, Graeme Johnson, Andrew Low
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsGraham Chapman, John Duimovich, Trent Gray-Donald, Graeme Johnson, Andrew Low
Estimating the term…
The stack mapper of the present invention seeks to determine the shape of the stack at a given program counter. This is accomplished by locating all start points possible for a given method, that is, at all of the entry points for the method and all of the exception entry points, and trying to find a path from the beginning of the method to the program counter in question. The mapper first tries to locate a linear path from the beginning of the method, and then iteratively processes the sequence of bytes at each branch until the destination program counter is reached. Once the path is found, a simulation is run of the stack through that path, which is used as the virtual stack for the purposes of the garbage collector.
A method for mapping a valid stack up to a destination program counter, said stack having a layout of instructions for a method including one or more branches, said method comprising:
A method for mapping a Java bytecode stack up to a destination program counter, said Java bytecode stack having a layout of instructions for a method including one or more branches, said method comprising:
A computer-readable media having computer readable program code embodied therein for executing a method for mapping a valid stack up to a destination program counter, said stack having a layout of instructions for a method including one or more branches, the computer readable program code configured for executing method steps comprising:
A computer readable media having computer readable program code embodied therein for executing a method for mapping a Java bytecode stack up to a destination program counter, said Java bytecode stack having a layout of instructions for a method including one or more branches, the computer readable program code configured for executing method steps comprising:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform method steps for mapping a valid stack up to a destination program-counter, said stack having a layout of instructions for a method including one or more branches, said method steps comprising:
Dependencies are inferred from the claim text.