Method apparatus for implementing multiple return sites
AssigneeSun Microsystems, Inc.
InventorsUrs Hölzle, Robert Griesemer
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorsUrs Hölzle, Robert Griesemer
Estimating the term…
Methods and apparatus for efficiently enabling an alternate return address associated with a function call to essentially be stored such that the alternate return address may be readily accessed are disclosed. According to one aspect of the present invention, a method for enabling a return address associated with a function called by a routine to be efficiently stored includes calling the function from within the routine while the routine is executing. In general, the function is external to the routine. The function, once called, begins executing. Eventually, the function returns to the routine. Specifically, the function returns to a location in the routine that is identified by an expected return point, or normal return address. The instruction in the routine that corresponds to the expected return point is a dummy instruction that executes with a low computational overhead but does not affect program execution. When the called function is to return to an alternate return point, it obtains the address by reading data embedded in the dummy instruction.
A computer-implemented method for using a dummy instruction which has an embedded library value associated with a return point to identify one of a plurality of return points including an expected return point and an alternate return point, the computer-implemented method comprising:
A computer-implemented method for storing data associated with one of a plurality of return points to enable the data associated with the one of the plurality of return points to be efficiently obtained, the plurality of return points including an expected return point and at least a first alternate return point, the computer-implemented method comprising:
A computer program product for storing data associated with one of a plurality of return points to enable the data associated with the one of the plurality of return points to be efficiently obtained, the plurality of return points including an expected return point and at least a first alternate return point, the computer program product comprising:
A computer program product for using a dummy instruction associated with a return point containing an embedded library value to identify one of a plurality of return points including an expected return point and an alternate return point, the computer program product comprising:
Dependencies are inferred from the claim text.