WO2001090885A2 - Method and apparatus for creating efficient native methods that extend a bytecode interpreter - Google Patents

Method and apparatus for creating efficient native methods that extend a bytecode interpreter Download PDF

Info

Publication number
WO2001090885A2
WO2001090885A2 PCT/US2001/017126 US0117126W WO0190885A2 WO 2001090885 A2 WO2001090885 A2 WO 2001090885A2 US 0117126 W US0117126 W US 0117126W WO 0190885 A2 WO0190885 A2 WO 0190885A2
Authority
WO
WIPO (PCT)
Prior art keywords
native
stack
java
virtual machine
interface
Prior art date
Application number
PCT/US2001/017126
Other languages
French (fr)
Other versions
WO2001090885A3 (en
Inventor
Dean R. E. Long
Christopher J. Plummer
Nedim Fresko
Original Assignee
Sun Microsystems, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sun Microsystems, Inc. filed Critical Sun Microsystems, Inc.
Priority to EP01939519A priority Critical patent/EP1301854B1/en
Priority to AT01939519T priority patent/ATE534951T1/en
Priority to AU2001265028A priority patent/AU2001265028A1/en
Priority to ES01939519T priority patent/ES2376191T3/en
Publication of WO2001090885A2 publication Critical patent/WO2001090885A2/en
Publication of WO2001090885A3 publication Critical patent/WO2001090885A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Definitions

  • the present invention relates generally to computer software and operating systems. More specifically, it relates to an interface for a Java virtual machine that enables more efficient use of components in the virtual machine and allows for efficient invocation of native methods.
  • Java virtual machine Java virtual machine
  • JVM Java virtual machine
  • a typical implementation of the Java language is a JNM, containing an interpreter loop (also referred to as a bytecode interpreter) which repeatedly executes bytecodes.
  • the interpreter loop is typically written in a low-level language, such as the C programming language, and executes a stack-based intermediate representation of the Java language called Java bytecodes.
  • a Java system such as one present in an embedded or consumer device, typically contains a set of libraries written in Java and a set of native methods, written in a language such as C.
  • a native method interface is provided by the virtual machine. This native interface is responsible for locating a native method and transferring a set of method arguments from the Java bytecode stack to a native stack (also referred to as a C stack) before execution of the native method. The interface is also responsible for taking a native method's return value and putting it back on the Java stack for subsequent use by Java bytecodes. Essentially, the native method interface takes arguments from the Java stack and places them on the C stack.
  • a common native method interface for Java is the Java Native Interface or JNI. Other issues arise when using present native method interfaces on systems with limited CPU and memory resources. One issue is that many performance-critical native methods must be run often.
  • the native method interface "protocol" takes excessive time for execution. I-n addition, the native method returns to the interpreter loop, a frame needs to be popped from the Java stack. Another issue is the amount of space utilized by the native stack or C stack.
  • special method calls namely, method invocations due to Java reflection (Method.invoke() and running constructors for Class. newI-nstanceO) and running the static initializer ⁇ clinit> of a class on the class's first use
  • the C functions that handle the reflection method invocation and ⁇ clinit> method invocation recursively call the (Java) interpreter loop to execute the special target method. This means the native stack has a new interpreter frame pushed onto it.
  • This process can go on indefinitely, from interpreter loop to native code to interpreter loop and so on.
  • This recursive call cycle can potentially consume excessive C stack resources and processor clock cycles since the C stack is typically pre-allocated and made sufficiently large to avoid overflow in a worst- case scenario.
  • This overhead for pre-allocating a C stack memory for accommodating a worst-case scenario for stack usage is significant for consumer and embedded devices executing a JVM that have constrained memory and processor resources. Therefore, if recursive C calls contribute to worst-case C stack usage, and those recursive calls can be reduced or eliminated, then worst-case C stack usage can be potentially reduced, thus allowing the size of pre-allocated C stacks to be reduced.
  • What is needed is a special-purpose native interface that allows a JVM to minimize the amount of memory and processor resources the JVM consumes.
  • the special-purpose native interface used in conjunction with the interpreter loop can potentially eliminate C recursion.
  • a native interface that does not require pushing or popping Java frames, does not require marshaling arguments and method results between the Java and native stacks, and does not require expensive functions callbacks in order to allow the native method to access internal JNM data.
  • a method of executing a native method in a Java virtual machine is described.
  • the JNM first determines whether a native method is to be handled by a special native interface or one of multiple other native interfaces. If it is determined that the method is to be handled by the special native interface, the method is invoked directly from the interpreter loop according to the protocol required by the special native interface. This enables the method to access the Java virtual machine state such as the Java stack through the arguments passed to it.
  • a special native method is implemented as a native function whose name and signature match those required by the special native interface.
  • the state of the Java virtual machine maybe adjusted directly, which is more efficient than J ⁇ I doing so given that J ⁇ I can only modify the JVM state through the use of callback functions.
  • Using the special native interface can be more efficient than J ⁇ I in three areas: transition from the interpreter loop to the native method, native method execution, and transition from the native method back to the interpreter loop.
  • native methods are classified so that they qualify for being handled by a special native interface.
  • a function pointer is obtained from a method block and used to call the function implementing the special method.
  • the special method function is then passed one or more argument pointers.
  • a pointer to the top of the Java stack and a pointer to a method block pointer is passed to the special native method.
  • the special native method places a transition frame corresponding to a new method on to a stack in the virtual machine.
  • the special native method also pushes arguments associated with the transition frame on to the stack, and a result code is returned.
  • the stack is a Java stack and the result code signals that a new transition frame has been pushed onto the stack.
  • the state of the Java virtual machine is adjusted by storing a result from the special native method on a Java stack and modifying a Java stack pointer based on the return code.
  • stack recursion in the virtual machine is minimized and memory utilized by a stack is reduced while the virtual machine is executing.
  • FIG. 1 is a block diagram of an interpreter loop in a Java virtual machine in accordance with one embodiment of the present invention.
  • FIG. 2 is a flow diagram of a set-up and call process in the interpreter loop in accordance with one embodiment of the present invention.
  • FIG. 3 is a flow diagram describing one scenario of a process for execution of an SNI method in accordance with one embodiment of the present invention.
  • FIG. 4 is a flow diagram of a process for SNI new transition frame in accordance with one embodiment of the present invention.
  • FIGS. 5 A and 5B are flow diagrams of a process for an SNI new method block scenario in accordance with one embodiment of the present invention.
  • FIG. 6 is a diagrammatic representation of virtual machine in accordance with one embodiment of the present invention.
  • FIG. 7 is a block diagram of a typical computer system suitable for implementing an embodiment of the present invention.
  • JNM Java virtual machine
  • a special-purpose fast interface for native methods used in conjunction with the interpreter loop can potentially eliminate C stack recursion in the JNM.
  • the interface performs as an extension to the interpreter loop component in the JNM in that a native method, invoked via the special-purpose interface, is able to modify the interpreter loop state if necessary. This is done without adding new bytecode instructions to the JNM.
  • FIG. 1 is a block diagram of an interpreter loop in a Java virtual machine in accordance with one embodiment of the present invention.
  • An interpreter loop 102 is one component in the Java virtual machine described in greater detail in FIG.6 as component 617 below.
  • a set-up and native method call module 104 is a module responsible for reacting to and communicating with special native methods encountered by the Java virtual machine. Module 104 initiates communication with a native method, such as methods 106 and 108. A special native method 106 or 108 returns certain data to a status return module 110.
  • Module 110 accepts a return value from a special native method and allows interpreter loop 102 to continue execution.
  • FIG. 2 is a flow diagram of a set-up and call process in the interpreter loop in accordance with one embodiment of the present invention.
  • the interpreter loop specifically module 104, examines a method block for the method encountered by the JVM for a method type such as Java, JNI or, in the present invention, SNI.
  • a method block is a data structure that represents the method and contains pointers, number of arguments and other data relating to the method.
  • the interpreter loop obtains a function pointer from the method block.
  • the interpreter loop calls the method using the function pointer and passes certain data.
  • One type of data passed is a pointer to arguments in a Java stack.
  • Another type of data passed is a pointer to a method block pointer. The use of these pointers is described in greater detail below.
  • Yet another type of data passed is an execution environment pointer as is typically done to access information pertaining to the currently executing thread.
  • the SNI method begins execution.
  • FIG. 3 is a flow diagram describing one scenario of a process for execution of an SNI method in accordance with one embodiment of the present invention.
  • the process shows the instance in which the SNI method returns a result that indicates the size of the method result.
  • the SNI method executing in conjunction with the interpreter loop, has stored its result in a Java stack in the JVM. It now needs to inform the interpreter loop by how much to adjust the Java top-of-stack pointer based on a return code at step 302.
  • the possible return codes are void, single or double. Adjusting the Java top-of-stack pointer is a typical step performed in the JNM when executing methods.
  • FIG. 4 is a flow diagram of a process for an S ⁇ I new transition frame scenario in accordance with one embodiment of the present invention. I-n this scenario the S ⁇ I method pushes a transition frame onto a Java stack. Transition frames are used to invoke any type of method. At step 404 the S ⁇ I method pushes arguments associated with the transition frame onto the Java stack. At step 406 the S ⁇ I method returns a result referred to in the described embodiment as a "S ⁇ I new transition frame" to the interpreter loop.
  • FIGS. 5 A and 5B are flow diagrams of a process for an S ⁇ I new method block scenario in accordance with one embodiment of the present invention.
  • an S ⁇ I method determines the appropriate method block that it will signal the interpreter loop to invoke.
  • the interface stores the pointer to the method block determined in step 502, which can be any type of method block, including an S ⁇ I method, in the designated pointer argument described above in step 206.
  • step 506
  • FIG. 6 is a diagrammatic representation of virtual machine 611 such as JVM 607, that can be supported by computer system 700 of FIG. 7 described below.
  • source code 601 is provided to a bytecode compiler 603 within a compile-time environment 603.
  • Bytecode compiler 609 translates source code 601 into bytecodes 605.
  • source code 601 is translated into bytecodes 605 at the time source code 601 is created by a software developer.
  • Bytecodes 605 can generally be reproduced, downloaded, or otherwise distributed through a network, e.g., through network interface 1024 of FIG. 10, or stored on a storage device such as primary storage 1004 of FIG. 10.
  • bytecodes 603 are platform independent. That is, bytecodes 603 may be executed on substantially any computer system that is running a suitable virtual machine 611. Native instructions formed by compiling bytecodes may be retained for later use by the JVM. In this way the cost of the translation are amortized over multiple executions to provide a speed advantage for native code over interpreted code.
  • bytecodes 605 can be executed on a computer system that is running a JNM.
  • Bytecodes 605 are provided to a runtime environment 613 which includes virtual machine 611.
  • Runtime environment 613 can generally be executed using a processor such as CPU 1002 of FIG. 10.
  • Virtual machine 611 includes a compiler 615, an interpreter 617 implementing interpreter loop 102 described in FIG. 1, and a runtime system 619.
  • Bytecodes 605 can generally be provided either to compiler 615 or interpreter 617.
  • interpreter 617 When bytecodes 605 are provided to compiler 615, methods contained in bytecodes 605 are compiled into native machine instructions (not shown). On the other hand, when bytecodes 605 are provided to interpreter 617, bytecodes 605 are read into interpreter 617 one bytecode at a time. Interpreter 617 then performs the operation defined by each bytecode as each bytecode is read into interpreter 617. In general, interpreter 617 processes bytecodes 605 and performs operations associated with bytecodes 605 substantially continuously.
  • runtime system 619 When a method is called, if it is determined that the method is to be invoked as an interpreted method, runtime system 619 can obtain the method from interpreter 617. If, on the other hand, it is determined that the method is to be invoked as a compiled method, runtime system 619 activates compiler 615. Compiler 615 then generates native machine instructions from bytecodes 605, and executes the machine-language instructions. In general, the machine-language instructions are discarded when virtual machine 611 terminates.
  • the operation of virtual machines or, more particularly, JavaTM virtual machines is described in more detail in The JavaTM Virtual Machine Specification by Tim Lindholm and Frank Yellin (ISBN 0-201-63452-X), which is incorporated herein by reference in its entirety.
  • the present invention employs various computer-implemented operations involving data stored in computer systems. These operations include, but are not limited to, those requiring physical manipulation of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated.
  • the operations described herein that form part of the invention are useful machine operations. The manipulations performed are often referred to in terms, such as, producing, identifying, running, determining, comparing, executing, downloading, or detecting. It is sometimes convenient, principally for reasons of common usage, to refer to these electrical or magnetic signals as bits, values, elements, variables, characters, data, or the like.
  • the present invention also relates to a device, system or apparatus for performing the aforementioned operations.
  • the system may be specially constructed for the required purposes, or it may be a general purpose computer selectively activated or configured by a computer program stored in the computer.
  • the processes presented above are not inherently related to any particular computer or other computing apparatus.
  • various general purpose computers may be used with programs written in accordance with the teachings herein, or, alternatively, it may be more convenient to construct a more specialized computer system to perform the required operations.
  • FIG. 7 is a block diagram of a general purpose computer system 700 suitable for carrying out the processing in accordance with one embodiment of the present invention.
  • Figure 7 illustrates one embodiment of a general purpose computer system.
  • Computer system 700 includes at least one microprocessor subsystem (also referred to as a central processing unit, or CPU) 702. That is, CPU 702 can be implemented by a single-chip processor or by multiple processors.
  • CPU 702 is a general purpose digital processor which controls the operation of the computer system 700. Using instructions retrieved from memory, the CPU 702 controls the reception and manipulation of input data, and the output and display of data on output devices.
  • CPU 702 is coupled bi-directionally with a first primary storage 704, typically a random access memory (RAM), and uni-directionally with a second primary storage area 706, typically a read-only memory (ROM), via a memory bus 708.
  • primary storage 704 can be used as a general storage area and as scratch-pad memory, and can also be used to store input data and processed data. It can also store programming instructions and data, in the form of a memory stack in addition to other data and instructions for processes operating on CPU 702, and is used typically used for fast transfer of data and instructions in a bi-directional manner over the memory bus 708.
  • primary storage 706 typically includes basic operating instructions, program code, data and objects used by the CPU 702 to perform its functions.
  • Primary storage devices 704 and 706 may include any suitable computer- readable storage media, described below, depending on whether, for example, data access needs to be bi-directional or uni-directional.
  • CPU 702 can also directly and very rapidly retrieve and store frequently needed data in a cache memory 710.
  • a removable mass storage device 712 provides additional data storage capacity for the computer system 700, and is coupled either bi-directionally or uni-directionally to CPU 702 via a peripheral bus 714.
  • a specific removable mass storage device commonly known as a CD-ROM typically passes data uni-directionally to the CPU 702, whereas a floppy disk can pass data bi-directionally to the CPU 702.
  • Storage 712 may also include computer-readable media such as magnetic tape, flash memory, signals embodied on a carrier wave, PC-CARDS, portable mass storage devices, holographic storage devices, and other storage devices.
  • a fixed mass storage 716 also provides additional data storage capacity and is coupled bi-directionally to CPU 702 via peripheral bus 714. The most common example of mass storage 716 is a hard disk drive.
  • Mass storage 712 and 716 generally store additional programming instructions, data, and the like that typically are not in active use by the CPU 702. It will be appreciated that the information retained within mass storage 712 and 716 may be incorporated, if needed, in standard fashion as part of primary storage 704 (e.g. RAM) as virtual memory.
  • the peripheral bus 714 is used to provide access other subsystems and devices as well. In the described embodiment, these include a display monitor 718 and adapter 720, a printer device 722, a network interface 724, an auxiliary input/output device interface 726, a sound card 728 and speakers 730, and other subsystems as needed.
  • the network interface 724 allows CPU 702 to be coupled to another computer, computer network, or telecommunications network using a network connection as shown. Through the network interface 724, it is contemplated that the CPU 702 might receive information, e.g., data objects or program instructions, from another network, or might output information to another network in the course of performing the above- described method steps. Information, often represented as a sequence of instructions to be executed on a CPU, may be received from and outputted to another network, for example, in the form of a computer data signal embodied in a carrier wave. An interface card or similar device and appropriate software implemented by CPU 702 can be used to connect the computer system 700 to an external network and transfer data according to standard protocols.
  • method embodiments of the present invention may execute solely upon CPU 702, or may be performed across a network such as the Internet, intranet networks, or local area networks, in conjunction with a remote CPU that shares a portion of the processing.
  • Additional mass storage devices may also be connected to CPU 702 through network interface 724.
  • Auxiliary I O device interface 726 represents general and customized interfaces that allow the CPU 702 to send and, more typically, receive data from other devices such as microphones, touch-sensitive displays, transducer card readers, tape readers, voice or handwriting recognizers, biometrics readers, cameras, portable mass storage devices, and other computers.
  • a keyboard controller 732 is Also coupled to the CPU 702 is a keyboard controller 732 via a local bus 734 for receiving input from a keyboard 736 or a pointer device 738, and sending decoded symbols from the keyboard 736 or pointer device 738 to the CPU 702.
  • the pointer device may be a mouse, stylus, track ball, or tablet, and is useful for interacting with a graphical user interface.
  • embodiments of the present invention further relate to computer storage products with a computer readable medium that contain program code for performing various computer-implemented operations.
  • the computer-readable medium is any data storage device that can store data which can thereafter be read by a computer system.
  • the media and program code may be those specially designed and constructed for the purposes of the present invention, or they may be of the kind well known to those of ordinary skill in the computer software arts.
  • Examples of computer-readable media include, but are not limited to, all the media mentioned above: magnetic media such as hard disks, floppy disks, and magnetic tape; optical media such as CD-ROM disks; magneto-optical media such as floptical disks; and specially configured hardware devices such as application-specific integrated circuits (ASICs), programmable logic devices (PLDs), and ROM and RAM devices.
  • the computer-readable medium can also be distributed as a data signal embodied in a carrier wave over a network of coupled computer systems so that the computer-readable code is stored and executed in a distributed fashion.
  • Examples of program code include both machine code, as produced, for example, by a compiler, or files containing higher level code that may be executed using an interpreter.
  • FIG. 7 is but an example of a computer system suitable for use with the invention. Other computer architectures having different configurations of subsystems may also be utilized.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

Methods, apparatus and computer program products are disclosed for a method of invoking a native in a Java virtual machine ('JVM'). A special-purpose fast interface, executing in conjunction with an interpreter loop, for native methods reduces C stack recursion in the JVM. The interface performs as an extension to the interpreter loop component in the JVM in that a native method, invoked via the special-purpose interface, is able to modify the interpreter loop state if necessary. This is done without adding new bytecode instructions. A method of executing a native method in a Java virtual machine is described. The JVM first determines whether a native method is to be handled by a special native interface or one of multiple other native interface. If it is determined that the method is to be handled by the special native interface, the method is invoked and passed arguments enabling it to access the state of the JVM. The method is then executed. The state of the JVM is adjusted based on the execution of the method such that transition between the interpreter loop and the native method via the special native interface is minimized.

Description

METHOD AND APPARATUS FOR CREATING EFFICIENT NATIVE METHODS THAT EXTEND A BYTECODE INTERPRETER
CROSS-REFERENCE TO RELATED APPLICATIONS
The present application claims priority from provisional patent application filed May 25, 2000, application number 60/207,482, titled "Method and Apparatus for Writing Time and Space Efficient Native Methods that Extend A Byte-Code Interpreter."
BACKGROUND OF THE INVENTION
1. FIELD OF THE INVENTION
The present invention relates generally to computer software and operating systems. More specifically, it relates to an interface for a Java virtual machine that enables more efficient use of components in the virtual machine and allows for efficient invocation of native methods.
2. DISCUSSION OF RELATED ART
The need to place a Java system or Java virtual machine ("JVM") in consumer and embedded systems is increasing. Devices, appliances, set-top boxes and the like are more likely in the future to contain some kind of implementation of the Java language. As is known in the field, a typical implementation of the Java language is a JNM, containing an interpreter loop (also referred to as a bytecode interpreter) which repeatedly executes bytecodes. The interpreter loop is typically written in a low-level language, such as the C programming language, and executes a stack-based intermediate representation of the Java language called Java bytecodes. A Java system, such as one present in an embedded or consumer device, typically contains a set of libraries written in Java and a set of native methods, written in a language such as C. For Java bytecodes to call native methods, a native method interface is provided by the virtual machine. This native interface is responsible for locating a native method and transferring a set of method arguments from the Java bytecode stack to a native stack (also referred to as a C stack) before execution of the native method. The interface is also responsible for taking a native method's return value and putting it back on the Java stack for subsequent use by Java bytecodes. Essentially, the native method interface takes arguments from the Java stack and places them on the C stack. A common native method interface for Java is the Java Native Interface or JNI. Other issues arise when using present native method interfaces on systems with limited CPU and memory resources. One issue is that many performance-critical native methods must be run often. However, the native method interface "protocol" takes excessive time for execution. I-n addition, the native method returns to the interpreter loop, a frame needs to be popped from the Java stack. Another issue is the amount of space utilized by the native stack or C stack. For special method calls, namely, method invocations due to Java reflection (Method.invoke() and running constructors for Class. newI-nstanceO) and running the static initializer <clinit> of a class on the class's first use, there is a native stack usage problem. The C functions that handle the reflection method invocation and <clinit> method invocation recursively call the (Java) interpreter loop to execute the special target method. This means the native stack has a new interpreter frame pushed onto it. This process can go on indefinitely, from interpreter loop to native code to interpreter loop and so on. This recursive call cycle can potentially consume excessive C stack resources and processor clock cycles since the C stack is typically pre-allocated and made sufficiently large to avoid overflow in a worst- case scenario. This overhead for pre-allocating a C stack memory for accommodating a worst-case scenario for stack usage is significant for consumer and embedded devices executing a JVM that have constrained memory and processor resources. Therefore, if recursive C calls contribute to worst-case C stack usage, and those recursive calls can be reduced or eliminated, then worst-case C stack usage can be potentially reduced, thus allowing the size of pre-allocated C stacks to be reduced.
What is needed is a special-purpose native interface that allows a JVM to minimize the amount of memory and processor resources the JVM consumes. In certain cases, the special-purpose native interface used in conjunction with the interpreter loop can potentially eliminate C recursion. In addition, it would be desirable to effectively extend the interpreter loop in a JVM without adding one or more new bytecodes and by allowing certain native methods to directly manipulate or access the JNM state. More specifically, what is needed is a native interface that does not require pushing or popping Java frames, does not require marshaling arguments and method results between the Java and native stacks, and does not require expensive functions callbacks in order to allow the native method to access internal JNM data.
SUMMARY OF THE INVENTION
Methods, systems and computer-readable media are described for executing a native method in a Java virtual machine. In one aspect of the invention, a method of executing a native method in a Java virtual machine is described. The JNM first determines whether a native method is to be handled by a special native interface or one of multiple other native interfaces. If it is determined that the method is to be handled by the special native interface, the method is invoked directly from the interpreter loop according to the protocol required by the special native interface. This enables the method to access the Java virtual machine state such as the Java stack through the arguments passed to it. A special native method is implemented as a native function whose name and signature match those required by the special native interface. During the execution of the function, the state of the Java virtual machine maybe adjusted directly, which is more efficient than JΝI doing so given that JΝI can only modify the JVM state through the use of callback functions. Using the special native interface can be more efficient than JΝI in three areas: transition from the interpreter loop to the native method, native method execution, and transition from the native method back to the interpreter loop.
In one embodiment of the present invention, native methods are classified so that they qualify for being handled by a special native interface. In another embodiment, a function pointer is obtained from a method block and used to call the function implementing the special method. The special method function is then passed one or more argument pointers. In yet another embodiment, a pointer to the top of the Java stack and a pointer to a method block pointer is passed to the special native method. In yet another embodiment, the special native method places a transition frame corresponding to a new method on to a stack in the virtual machine. The special native method also pushes arguments associated with the transition frame on to the stack, and a result code is returned. In yet another embodiment the stack is a Java stack and the result code signals that a new transition frame has been pushed onto the stack. In yet another embodiment the state of the Java virtual machine is adjusted by storing a result from the special native method on a Java stack and modifying a Java stack pointer based on the return code. In yet another embodiment stack recursion in the virtual machine is minimized and memory utilized by a stack is reduced while the virtual machine is executing.
BRIEF DESCRIPTION OF THE DRAWINGS
The invention will be better understood by reference to the following description taken in conjunction with the accompanying drawings in which:
FIG. 1 is a block diagram of an interpreter loop in a Java virtual machine in accordance with one embodiment of the present invention.
FIG. 2 is a flow diagram of a set-up and call process in the interpreter loop in accordance with one embodiment of the present invention.
FIG. 3 is a flow diagram describing one scenario of a process for execution of an SNI method in accordance with one embodiment of the present invention. FIG. 4 is a flow diagram of a process for SNI new transition frame in accordance with one embodiment of the present invention.
FIGS. 5 A and 5B are flow diagrams of a process for an SNI new method block scenario in accordance with one embodiment of the present invention.
FIG. 6 is a diagrammatic representation of virtual machine in accordance with one embodiment of the present invention.
FIG. 7 is a block diagram of a typical computer system suitable for implementing an embodiment of the present invention.
DETAILED DESCRIPTION
Reference will now be made in detail to a preferred embodiment of the invention. An example of the preferred embodiment is illustrated in the accompanying drawings. While the invention will be described in conjunction with a preferred embodiment, it will be understood that it is not intended to limit the mvention to one preferred embodiment. To the contrary, it is intended to cover alternatives, modifications, and equivalents as may be included within the spirit and scope of the invention as defined by the appended claims.
A method of invoking a native method in a Java virtual machine ("JNM") is described in the various figures. In certain cases, a special-purpose fast interface for native methods used in conjunction with the interpreter loop can potentially eliminate C stack recursion in the JNM. The interface performs as an extension to the interpreter loop component in the JNM in that a native method, invoked via the special-purpose interface, is able to modify the interpreter loop state if necessary. This is done without adding new bytecode instructions to the JNM.
In a specific embodiment, the set of native interfaces used by the JVM is extended or modified to include a special native interface referred to as SΝI for illustrative purposes. FIG. 1 is a block diagram of an interpreter loop in a Java virtual machine in accordance with one embodiment of the present invention. An interpreter loop 102 is one component in the Java virtual machine described in greater detail in FIG.6 as component 617 below. A set-up and native method call module 104 is a module responsible for reacting to and communicating with special native methods encountered by the Java virtual machine. Module 104 initiates communication with a native method, such as methods 106 and 108. A special native method 106 or 108 returns certain data to a status return module 110. Module 110 accepts a return value from a special native method and allows interpreter loop 102 to continue execution. FIG. 2 is a flow diagram of a set-up and call process in the interpreter loop in accordance with one embodiment of the present invention. At step 202 the interpreter loop, specifically module 104, examines a method block for the method encountered by the JVM for a method type such as Java, JNI or, in the present invention, SNI. As is known in the field of Java virtual machine programming, a method block is a data structure that represents the method and contains pointers, number of arguments and other data relating to the method. At step 204 the interpreter loop obtains a function pointer from the method block.
At step 206 the interpreter loop calls the method using the function pointer and passes certain data. One type of data passed is a pointer to arguments in a Java stack. Another type of data passed is a pointer to a method block pointer. The use of these pointers is described in greater detail below. Yet another type of data passed is an execution environment pointer as is typically done to access information pertaining to the currently executing thread. At step 208 the SNI method begins execution.
FIG. 3 is a flow diagram describing one scenario of a process for execution of an SNI method in accordance with one embodiment of the present invention. In the described embodiment, the process shows the instance in which the SNI method returns a result that indicates the size of the method result. The SNI method, executing in conjunction with the interpreter loop, has stored its result in a Java stack in the JVM. It now needs to inform the interpreter loop by how much to adjust the Java top-of-stack pointer based on a return code at step 302. In the described embodiment, the possible return codes are void, single or double. Adjusting the Java top-of-stack pointer is a typical step performed in the JNM when executing methods. At step 304, as is known in the field, a program counter in the interpreter loop is adjusted to the next bytecode to be executed. At step 306 the interpreter loop resumes bytecode execution. FIG. 4 is a flow diagram of a process for an SΝI new transition frame scenario in accordance with one embodiment of the present invention. I-n this scenario the SΝI method pushes a transition frame onto a Java stack. Transition frames are used to invoke any type of method. At step 404 the SΝI method pushes arguments associated with the transition frame onto the Java stack. At step 406 the SΝI method returns a result referred to in the described embodiment as a "SΝI new transition frame" to the interpreter loop. In the described embodiment, "SΝI new transition frame" is the result code returned to the interpreter loop. At step 408 the JNM begins execution of the transition method referred to in the transition frame at which stage the processing of an "SΝI new transition frame" return result is complete. FIGS. 5 A and 5B are flow diagrams of a process for an SΝI new method block scenario in accordance with one embodiment of the present invention. At step 502 of FIG. 5 A an SΝI method determines the appropriate method block that it will signal the interpreter loop to invoke. At step 504 the interface stores the pointer to the method block determined in step 502, which can be any type of method block, including an SΝI method, in the designated pointer argument described above in step 206. At step 506
SΝI native method pushes new arguments for that method onto the Java stack. By doing so, previous arguments in the Java stack for the SΝI method may be overwritten. The new method block and control are returned to the interpreter loop at step 508. At step 510 of FIG. 5B the interpreter loop checks the return code from the special native method and adjusts the Java top-of-stack pointer based on the size of the arguments in the new method. At step 512 the interpreter loop branches to the component that handles invoking new methods and does so based on the new method block returned. At this stage the process is complete. FIG. 6 is a diagrammatic representation of virtual machine 611 such as JVM 607, that can be supported by computer system 700 of FIG. 7 described below. As mentioned above, when a computer program, e.g., a program written in the Java™ programming language, is translated from source to bytecodes, source code 601 is provided to a bytecode compiler 603 within a compile-time environment 603. Bytecode compiler 609 translates source code 601 into bytecodes 605. In general, source code 601 is translated into bytecodes 605 at the time source code 601 is created by a software developer.
Bytecodes 605 can generally be reproduced, downloaded, or otherwise distributed through a network, e.g., through network interface 1024 of FIG. 10, or stored on a storage device such as primary storage 1004 of FIG. 10. In the described embodiment, bytecodes 603 are platform independent. That is, bytecodes 603 may be executed on substantially any computer system that is running a suitable virtual machine 611. Native instructions formed by compiling bytecodes may be retained for later use by the JVM. In this way the cost of the translation are amortized over multiple executions to provide a speed advantage for native code over interpreted code. By way of example, in a Java™ environment, bytecodes 605 can be executed on a computer system that is running a JNM.
Bytecodes 605 are provided to a runtime environment 613 which includes virtual machine 611. Runtime environment 613 can generally be executed using a processor such as CPU 1002 of FIG. 10. Virtual machine 611 includes a compiler 615, an interpreter 617 implementing interpreter loop 102 described in FIG. 1, and a runtime system 619. Bytecodes 605 can generally be provided either to compiler 615 or interpreter 617.
When bytecodes 605 are provided to compiler 615, methods contained in bytecodes 605 are compiled into native machine instructions (not shown). On the other hand, when bytecodes 605 are provided to interpreter 617, bytecodes 605 are read into interpreter 617 one bytecode at a time. Interpreter 617 then performs the operation defined by each bytecode as each bytecode is read into interpreter 617. In general, interpreter 617 processes bytecodes 605 and performs operations associated with bytecodes 605 substantially continuously.
When a method is called, if it is determined that the method is to be invoked as an interpreted method, runtime system 619 can obtain the method from interpreter 617. If, on the other hand, it is determined that the method is to be invoked as a compiled method, runtime system 619 activates compiler 615. Compiler 615 then generates native machine instructions from bytecodes 605, and executes the machine-language instructions. In general, the machine-language instructions are discarded when virtual machine 611 terminates. The operation of virtual machines or, more particularly, Java™ virtual machines, is described in more detail in The Java™ Virtual Machine Specification by Tim Lindholm and Frank Yellin (ISBN 0-201-63452-X), which is incorporated herein by reference in its entirety.
The present invention employs various computer-implemented operations involving data stored in computer systems. These operations include, but are not limited to, those requiring physical manipulation of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. The operations described herein that form part of the invention are useful machine operations. The manipulations performed are often referred to in terms, such as, producing, identifying, running, determining, comparing, executing, downloading, or detecting. It is sometimes convenient, principally for reasons of common usage, to refer to these electrical or magnetic signals as bits, values, elements, variables, characters, data, or the like. It should remembered, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present invention also relates to a device, system or apparatus for performing the aforementioned operations. The system may be specially constructed for the required purposes, or it may be a general purpose computer selectively activated or configured by a computer program stored in the computer. The processes presented above are not inherently related to any particular computer or other computing apparatus. In particular, various general purpose computers may be used with programs written in accordance with the teachings herein, or, alternatively, it may be more convenient to construct a more specialized computer system to perform the required operations.
FIG. 7 is a block diagram of a general purpose computer system 700 suitable for carrying out the processing in accordance with one embodiment of the present invention. Figure 7 illustrates one embodiment of a general purpose computer system. Other computer system architectures and configurations can be used for carrying out the processing of the present invention. Computer system 700, made up of various subsystems described below, includes at least one microprocessor subsystem (also referred to as a central processing unit, or CPU) 702. That is, CPU 702 can be implemented by a single-chip processor or by multiple processors. CPU 702 is a general purpose digital processor which controls the operation of the computer system 700. Using instructions retrieved from memory, the CPU 702 controls the reception and manipulation of input data, and the output and display of data on output devices. CPU 702 is coupled bi-directionally with a first primary storage 704, typically a random access memory (RAM), and uni-directionally with a second primary storage area 706, typically a read-only memory (ROM), via a memory bus 708. As is well known in the art, primary storage 704 can be used as a general storage area and as scratch-pad memory, and can also be used to store input data and processed data. It can also store programming instructions and data, in the form of a memory stack in addition to other data and instructions for processes operating on CPU 702, and is used typically used for fast transfer of data and instructions in a bi-directional manner over the memory bus 708. Also as well known in the art, primary storage 706 typically includes basic operating instructions, program code, data and objects used by the CPU 702 to perform its functions. Primary storage devices 704 and 706 may include any suitable computer- readable storage media, described below, depending on whether, for example, data access needs to be bi-directional or uni-directional. CPU 702 can also directly and very rapidly retrieve and store frequently needed data in a cache memory 710.
A removable mass storage device 712 provides additional data storage capacity for the computer system 700, and is coupled either bi-directionally or uni-directionally to CPU 702 via a peripheral bus 714. For example, a specific removable mass storage device commonly known as a CD-ROM typically passes data uni-directionally to the CPU 702, whereas a floppy disk can pass data bi-directionally to the CPU 702. Storage 712 may also include computer-readable media such as magnetic tape, flash memory, signals embodied on a carrier wave, PC-CARDS, portable mass storage devices, holographic storage devices, and other storage devices. A fixed mass storage 716 also provides additional data storage capacity and is coupled bi-directionally to CPU 702 via peripheral bus 714. The most common example of mass storage 716 is a hard disk drive. Generally, access to these media is slower than access to primary storages 704 and 706. Mass storage 712 and 716 generally store additional programming instructions, data, and the like that typically are not in active use by the CPU 702. It will be appreciated that the information retained within mass storage 712 and 716 may be incorporated, if needed, in standard fashion as part of primary storage 704 (e.g. RAM) as virtual memory. hi addition to providing CPU 702 access to storage subsystems, the peripheral bus 714 is used to provide access other subsystems and devices as well. In the described embodiment, these include a display monitor 718 and adapter 720, a printer device 722, a network interface 724, an auxiliary input/output device interface 726, a sound card 728 and speakers 730, and other subsystems as needed. The network interface 724 allows CPU 702 to be coupled to another computer, computer network, or telecommunications network using a network connection as shown. Through the network interface 724, it is contemplated that the CPU 702 might receive information, e.g., data objects or program instructions, from another network, or might output information to another network in the course of performing the above- described method steps. Information, often represented as a sequence of instructions to be executed on a CPU, may be received from and outputted to another network, for example, in the form of a computer data signal embodied in a carrier wave. An interface card or similar device and appropriate software implemented by CPU 702 can be used to connect the computer system 700 to an external network and transfer data according to standard protocols. That is, method embodiments of the present invention may execute solely upon CPU 702, or may be performed across a network such as the Internet, intranet networks, or local area networks, in conjunction with a remote CPU that shares a portion of the processing. Additional mass storage devices (not shown) may also be connected to CPU 702 through network interface 724.
Auxiliary I O device interface 726 represents general and customized interfaces that allow the CPU 702 to send and, more typically, receive data from other devices such as microphones, touch-sensitive displays, transducer card readers, tape readers, voice or handwriting recognizers, biometrics readers, cameras, portable mass storage devices, and other computers.
Also coupled to the CPU 702 is a keyboard controller 732 via a local bus 734 for receiving input from a keyboard 736 or a pointer device 738, and sending decoded symbols from the keyboard 736 or pointer device 738 to the CPU 702. The pointer device may be a mouse, stylus, track ball, or tablet, and is useful for interacting with a graphical user interface.
In addition, embodiments of the present invention further relate to computer storage products with a computer readable medium that contain program code for performing various computer-implemented operations. The computer-readable medium is any data storage device that can store data which can thereafter be read by a computer system. The media and program code may be those specially designed and constructed for the purposes of the present invention, or they may be of the kind well known to those of ordinary skill in the computer software arts. Examples of computer-readable media include, but are not limited to, all the media mentioned above: magnetic media such as hard disks, floppy disks, and magnetic tape; optical media such as CD-ROM disks; magneto-optical media such as floptical disks; and specially configured hardware devices such as application-specific integrated circuits (ASICs), programmable logic devices (PLDs), and ROM and RAM devices. The computer-readable medium can also be distributed as a data signal embodied in a carrier wave over a network of coupled computer systems so that the computer-readable code is stored and executed in a distributed fashion. Examples of program code include both machine code, as produced, for example, by a compiler, or files containing higher level code that may be executed using an interpreter.
It will be appreciated by those skilled in the art that the above described hardware and software elements are of standard design and construction. Other computer systems suitable for use with the invention may include additional or fewer subsystems. In addition, memory bus 708, peripheral bus 714, and local bus 734 are illustrative of any interconnection scheme serving to link the subsystems. For example, a local bus could be used to connect the CPU to fixed mass storage 716 and display adapter 720. The computer system shown in FIG. 7 is but an example of a computer system suitable for use with the invention. Other computer architectures having different configurations of subsystems may also be utilized.
Although the foregoing invention has been described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practiced within the scope of the appended claims. Furthermore, it should be noted that there are alternative ways of implementing both the process and apparatus of the present invention. Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but maybe modified within the scope and equivalents of the appended claims.

Claims

CLAIMSWhat is claimed is:
1. A method of executing a native method in a Java virtual machine comprising: determining whether a native method is to be handled by a first native interface or one of a plurality of other native interfaces; if the method is to be handled by the first native interface, invoking the method and enabling the method to access an internal state of the Java virtual machine; executing the method in the Java virtual machine; and adjusting the state of the Java virtual machine based on execution of the method whereby transition between an interpreter loop and the native method via the first native interface is minimized.
2. A method as recited in claim 1 further comprising classifying one or more native methods so that the one or more native methods qualify for being handled by the first native interface.
3. A method as recited in any one of claims 1 and 2 further comprising: eliminating a need to push a Java stack frame onto a Java stack; eliminating a need to marshal one or more arguments and a method result from the Java stack to a C stack; eliminating a need to marshal the method result from the C stack to the Java stack; and eliminating a need to pop the Java stack frame from the Java stack.
4. A method as recited in any one of claims 1 , 2 and 3 wherein determining whether a native method is to be handled by a first native interface or one of a plurality of other native interfaces further comprises examining a method block of the native method to determine a method type.
5. A method as recited in any one of claims 1 through 4 further comprising: obtaining a function pointer from a method block; invoking the native method function; and passing to the native method function one or more arguments that allow access to a Java virtual machine state to be used by the native method without making callbacks to the Java virtual machine.
6. A method as recited in claim 5 further comprising: passing to the native method a pointer to arguments on a Java stack; and passing to the native method a pointer to a method block pointer, such that a new method block pointer can be returned to the interpreter loop.
7. A method as recited in any one of claims 1 through 6 wherein executing the method in an interpreter loop further comprises: pushing a transition frame corresponding to a particular method onto a first stack in the Java virtual machine; the native method pushing a plurality of arguments associated with the transition frame onto the first stack; and returning a result code to the interpreter loop.
8. A method as recited in claim 7 wherein the first stack is a Java stack and the result code indicates that a new transition frame has been pushed on the Java stack.
9. A method as recited in any one of claims 1 through 8 wherein adjusting the state of the JVM further comprises: storing a result from the native method on a Java stack; and modifying a Java stack pointer based on a return code.
10. A method as recited in any one of claims 1 through 9 wherein stack recursion in the Java virtual machine is minimized and memory utilized by at least one stack is reduced while the Java virtual machine is executing.
11. A system for executing a native method in a Java virtual machine, comprising: a processor; and a computer-readable medium storing a program for execution by the processor, the program comprising: computer code that determines whether a native method is to be handled by a first native interface or one of a plurality of other native interfaces; computer code that invokes the method and enables the method to access a state of the Java virtual machine, if the method is to be handled by the first native interface; and computer code that executes the method in the Java Virtual Machine; and computer code that adjusts the state of the Java Virtual Machine based on execution of the method whereby fransition between an interpreter loop and the native method via the first native interface is minimized.
12. A computer-readable medium containing programmed instructions arranged to execute a native method in a Java virtual machine, the computer-readable medium including programmed instructions for: determining whether a native method is to be handled by a first native interface or one of a plurality of other native interfaces; if the method is to be handled by the first native interface, invoking the method and enabling the method to access a state of the Java virtual machine; executing the method in the Java Virtual Machine; and adjusting the state of the JVM based on execution of the method whereby fransition between an interpreter loop and the native method via the first native interface is minimized.
PCT/US2001/017126 2000-05-25 2001-05-25 Method and apparatus for creating efficient native methods that extend a bytecode interpreter WO2001090885A2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP01939519A EP1301854B1 (en) 2000-05-25 2001-05-25 Method and apparatus for creating efficient native methods that extend a bytecode interpreter
AT01939519T ATE534951T1 (en) 2000-05-25 2001-05-25 METHOD AND APPARATUS FOR GENERATING EFFICIENT NATIVE METHODS EXPANDING A BYTECODE INTERPRETER
AU2001265028A AU2001265028A1 (en) 2000-05-25 2001-05-25 Method and apparatus for creating efficient native methods that extend a bytecode interpreter
ES01939519T ES2376191T3 (en) 2000-05-25 2001-05-25 METHOD AND APPARATUS FOR CREATING EFFECTIVE NATIVE METHODS THAT EXTEND A BYTE CODE INTERPRETER.

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US20748200P 2000-05-25 2000-05-25
US60/207,482 2000-05-25

Publications (2)

Publication Number Publication Date
WO2001090885A2 true WO2001090885A2 (en) 2001-11-29
WO2001090885A3 WO2001090885A3 (en) 2003-01-16

Family

ID=22770743

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2001/017126 WO2001090885A2 (en) 2000-05-25 2001-05-25 Method and apparatus for creating efficient native methods that extend a bytecode interpreter

Country Status (6)

Country Link
US (1) US6886157B2 (en)
EP (1) EP1301854B1 (en)
AT (1) ATE534951T1 (en)
AU (1) AU2001265028A1 (en)
ES (1) ES2376191T3 (en)
WO (1) WO2001090885A2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016166359A1 (en) * 2015-04-17 2016-10-20 Gemalto Sa Method for modifying the execution of a platform-independent method of an integrated circuit card
US20230057055A1 (en) * 2020-03-19 2023-02-23 Oracle International Corporation Modeling foreign functions using executable references
US11875168B2 (en) 2020-03-19 2024-01-16 Oracle International Corporation Optimizing execution of foreign method handles on a virtual machine

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915508B2 (en) * 2000-06-12 2005-07-05 Sun Microsystems, Inc. Method and apparatus for eliminating C recursion from a Java™ bytecode interpreter
US6604167B1 (en) * 2000-09-28 2003-08-05 International Business Machines Corporation Method and apparatus traversing stacks for just-in-time compilers for Java virtual machines
ATE516537T1 (en) * 2002-10-01 2011-07-15 Sap Ag TESTING SCRIPTING LANGUAGES WITH INTERFACES USING ANNOTATIONS IN XML
US7360206B1 (en) * 2003-03-13 2008-04-15 Network Appliance, Inc. Method for an interpreter to control a native function call based on a signature of the native function
GB0416259D0 (en) * 2004-07-21 2004-08-25 Ibm A method and system for enabling a server application to be executed in the same virtual machine as a client application using direct object oriented
KR100597413B1 (en) * 2004-09-24 2006-07-05 삼성전자주식회사 Method for translating Java bytecode and Java interpreter using the same
GB0424756D0 (en) * 2004-11-10 2004-12-08 Ibm Executing a native software routine in a virtual machine
US8578339B2 (en) * 2007-09-26 2013-11-05 Symantec Corporation Automatically adding bytecode to a software application to determine database access information
US8887141B2 (en) * 2007-09-28 2014-11-11 Symantec Corporation Automatically modifying a native code module accessed from virtual machine bytecode to determine execution information
US20090249311A1 (en) * 2008-03-31 2009-10-01 International Business Machines Corporation Sharing a native module of compiled code using an abstraction module of interpreted code in a virtual machine environment
US20090254881A1 (en) * 2008-04-04 2009-10-08 Microsoft Corporation Code generation techniques for administrative tasks
US8661407B2 (en) * 2008-06-26 2014-02-25 Microsoft Corporation Framework for programming embedded system applications
US9910688B2 (en) * 2008-11-28 2018-03-06 Red Hat, Inc. Implementing aspects with callbacks in virtual machines
CN101782868A (en) * 2009-01-21 2010-07-21 国际商业机器公司 Method and device for performance testing for local method call
US8776033B2 (en) * 2010-12-23 2014-07-08 International Business Machines Corporation Batch dispatch of java native interface calls
WO2014164987A1 (en) * 2013-03-12 2014-10-09 Bluebox Security Inc. Methods for dynamic mobile application behavior modification subject to a behavior policy
US11061703B2 (en) 2019-01-10 2021-07-13 International Business Machines Corporation Managed runtime data marshaling for native code access using a thread local native buffer
CN110888674B (en) * 2019-11-28 2022-08-09 支付宝(杭州)信息技术有限公司 Method and device for executing security calculation in Python virtual machine
US11809839B2 (en) 2022-01-18 2023-11-07 Robert Lyden Computer language and code for application development and electronic and optical communication

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6735761B1 (en) * 1998-05-15 2004-05-11 International Business Machines Corporation Compile method frame detection method and device code discarding method and computer
US6205578B1 (en) * 1998-08-14 2001-03-20 Ati International Srl Interpreter for stack-based languages
US6295643B1 (en) * 1998-12-10 2001-09-25 International Business Machines Corporation Method and apparatus for improving java virtual machine performance using persistent execution information
KR20010083781A (en) * 1999-01-06 2001-09-01 요트.게.아. 롤페즈 Arrangement for executing program code with reduced memory requirements
US6173442B1 (en) * 1999-02-05 2001-01-09 Sun Microsystems, Inc. Busy-wait-free synchronization
US6675371B1 (en) * 1999-04-30 2004-01-06 Hewlett-Packard Development Company, L.P. Java and native application window integration
US6507946B2 (en) * 1999-06-11 2003-01-14 International Business Machines Corporation Process and system for Java virtual method invocation
US6704926B1 (en) * 2000-09-28 2004-03-09 International Business Machines Corporation Bimodal Java just-in-time complier

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
None

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016166359A1 (en) * 2015-04-17 2016-10-20 Gemalto Sa Method for modifying the execution of a platform-independent method of an integrated circuit card
US10235139B2 (en) 2015-04-17 2019-03-19 Gemalto Sa Method for modifying the execution of a platform-independent method of an integrated circuit card
US20230057055A1 (en) * 2020-03-19 2023-02-23 Oracle International Corporation Modeling foreign functions using executable references
US11875168B2 (en) 2020-03-19 2024-01-16 Oracle International Corporation Optimizing execution of foreign method handles on a virtual machine
US12008351B2 (en) * 2020-03-19 2024-06-11 Oracle International Corporation Modeling foreign functions using executable references

Also Published As

Publication number Publication date
ATE534951T1 (en) 2011-12-15
US6886157B2 (en) 2005-04-26
ES2376191T3 (en) 2012-03-09
WO2001090885A3 (en) 2003-01-16
AU2001265028A1 (en) 2001-12-03
US20020066087A1 (en) 2002-05-30
EP1301854B1 (en) 2011-11-23
EP1301854A2 (en) 2003-04-16

Similar Documents

Publication Publication Date Title
US6886157B2 (en) Method and apparatus for creating efficient native methods that extend a bytecode interpreter
EP1076290B1 (en) Method for on-demand network application download and execution
US8104034B2 (en) Purpose domain for in-kernel virtual machine for low overhead startup and low resource usage
US6336122B1 (en) Object oriented class archive file maker and method
US6907519B2 (en) Systems and methods for integrating emulated and native code
US6601235B1 (en) Method and apparatus for dynamically deoptimizing compiled activations
US6651080B1 (en) Techniques for implementing pluggable virtual machines
US6393491B1 (en) Method and apparatus for dispatch table construction
US20020083416A1 (en) Automatic stub/adapter generator
EP1347379A2 (en) On demand, network accessible runtime compile server
US6986124B1 (en) Debugger protocol generator
WO2000052572A1 (en) A computer implemented method
Juric et al. Performance Comparison of CORBA and RMI
US20220300264A1 (en) Implementing optional specialization when compiling code
US8200938B2 (en) Computer system and method providing a memory buffer for use with native and platform-independent software code
US20020062400A1 (en) Method apparatus for implementing multiple return sites
US20060070028A1 (en) Procedure invocation in an integrated computing environment having both compiled and interpreted code segments
US7487137B2 (en) Apparatus, system, and method for java bean delta generation
EP1830255A2 (en) Method execution in a computing environment
US6978448B1 (en) Method and apparatus for rewriting bytecodes to minimize runtime checks
US7080368B2 (en) Object oriented apparatus and method for preserving stack frame identity during inlined method calls
US7254817B2 (en) Apparatus and methods for integrating APIs for program execution management
Gallardo et al. Development and Use of Dynamic Link Libraries Generated Under Various Calling Conventions
US11243876B2 (en) Techniques for accessing off-heap memory
US7984418B2 (en) Method and apparatus for situationally aware delivery of object instances to a client

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CR CU CZ DE DK DM DZ EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2001939519

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 2001939519

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: JP