METHOD AND APPARATUS OF TRANSLATING AND EXECUTING NATIVE CODE IN A VIRTUAL MACHINE ENVIRONMENT

Patent №

US 6,282,702

Granted

2001-08-28

Filed 1998

Owner

SUN MICROSYSTEMS, INC.

Lab

AI components

1

hardware

Assignment

Recorded

Dataset

AIPD

2023_r1 edition

Application

09134073

A method and apparatus of translating and executing native code in a virtual machine environment. Debugging of a virtual machine implementation is made easier through binary translation of native code, which permits greater platform independence and greater control over thread management and scheduling, and provides for identification of memory access errors in the native code. When native code is to be executed within a virtual machine environment, the native code is translated into an intermediate form. This intermediate form is processed to determine where memory access and blocking system calls occur. Validity checks are inserted into memory access calls to determine whether the portion of memory to be accessed by each call is within a permitted range. Wild pointers and other resources of memory access errors associated with the native code may thus be identified. Blocking system calls are replaced with non-blocking variants, and "yield" operations may be inserted into system calls and loops. The revised native code incorporating memory access validity checks and non-blocking system calls is compiled or interpreted by the virtual machine to execute the routines defined by the native code. Because the revised native code does not block other threads, thread scheduling may be managed by the virtual machine rather than the underlying operating system, and cooperative scheduling may be performed.

AI hardwareG06F 9/4843G06F 9/45504G06F 9/52G06F 9/44521G06F 9/45529

AI classification

AI hardware0.99
Natural language0.01
Planning0.00
Evolutionary computation0.00
Machine learning0.00
Speech0.00
Vision0.00
Knowledge representation0.00

Ownership

SUN MICROSYSTEMS, INC.

assignment · 93930088

Assignors

UNGAR, DAVID

On an employer assignment, the assignors are typically the inventors.

© 2026 NYSGPT2525 LLC