Method and apparatus for loading native object code in data processing system
First Claim
Patent Images
1. A process in a data processing system for loading native code, the process comprising:
- loading native code for a method into memory for execution by a virtual machine that normally interprets code, wherein the native code is used by the data processing system; and
altering an indicator to indicate that native code is present for the method, wherein the indicator is located within a fixup table in the virtual machine.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus that provides a method for loading native code into the memory of a data processing system for use by a Java virtual machine. Native code is loaded for a method into the memory, wherein the memory is accessible by the Java virtual machine. An indicator is set to indicate to the Java virtual machine that native code is present for the method.
92 Citations
22 Claims
-
1. A process in a data processing system for loading native code, the process comprising:
-
loading native code for a method into memory for execution by a virtual machine that normally interprets code, wherein the native code is used by the data processing system; and
altering an indicator to indicate that native code is present for the method, wherein the indicator is located within a fixup table in the virtual machine. - View Dependent Claims (2, 3, 4, 5, 6)
creating an entry point for the native code in which the entry point is used to access the native code when the method is executed.
-
-
3. The process of claim 1, wherein the process is executed by a class loader.
-
4. The process of claim 1, wherein the native code is located in a class file.
-
5. The process of claim 1, wherein the native code is located on a server having a communications link to the data processing system.
-
6. The process of claim 1, wherein the virtual machine is a Java virtual machine.
-
7. A process for loading native code into a data processing system for use by a Java virtual machine, the process comprising data processing system implemented steps of:
-
loading bytecode for a method into a memory, wherein the memory is accessible by the Java virtual machine;
determining whether native code exists for the method;
loading the native code for the method into the memory in response to a determination that native code exists for the method and setting an indicator to indicate to the Java virtual machine that native code is present in memory for the method; and
interpreting the bytecode in response to no indicator indicating that native code is present in memory for the method. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A data processing system comprising:
-
a virtual machine, wherein the virtual machine executes methods;
loading means for loading native code for a method into a memory, wherein the memory is accessible by the virtual machine;
setting means for setting an indicator to indicate to the virtual machine that native code is present in memory for the method; and
interpreting means for interpreting code to execute the method in response to no indicator indicating that native code is present for the method. - View Dependent Claims (13, 14, 15)
-
-
16. A Java virtual machine for use in a data processing system comprising:
-
a plurality of entry points into memory accessible by the Java virtual machine; and
a loader class, wherein the loader class loads native code, generated from a source other than from within the Java virtual machine, for execution by the data processing system and modifies an entry point within the plurality of entry points to provide an entry point for the native code. - View Dependent Claims (17, 18, 19, 20)
a just-in-time compiler, wherein the just-in-time compiler generates native code from bytecodes for a method and modifies an entry point within the plurality of entry points to provide an entry point to the native code generated from bytecodes and sets an indicator to indicate that the method has been processed by the just-in-time compiler, wherein the class loader sets an indicator in a manner compatible with the manner used by the just-in-time compiler.
-
-
21. A computer program product in a computer readable medium for loading native code for a computer onto the computer, the computer program product comprising:
-
first instructions for loading native code for a method into memory, wherein the memory is accessible by a virtual machine that normally interprets code; and
second instructions for setting an indicator to indicate to the virtual machine that native code is present for the method, wherein the indicator is located within a fixup table in the virtual machine.
-
-
22. A computer program product in a computer readable medium for loading native code for a computer onto the computer, the computer program product comprising:
-
first instructions for loading native code for a method into memory, wherein the memory is accessible by a virtual machine that normally interprets code;
second instructions for setting an indicator to indicate to the virtual machine that native code is present for the method; and
third instructions for creating an entry point for the native code in which the entry point is used to access the native code when the method is executed.
-
Specification