System and method for using native code interpretation to move threads to a safe state in a run-time environment
Abstract
A system and a method for interpreting native code to move threads to a safe state in a run-time environment. In a runtime system or virtual machine (VM) environment, threads process requests to the VM. In many instances such as garbage collection, context switching, and single CPU locking, the threads must be stopped in a safe state for the operation to successfully complete. The invention can be used to ensure that a thread is stopped in such a safe state. In accordance with an embodiment of the invention, when a first thread A is stopped by a second thread B, if A is not in a safe state the invention allows thread B to roll thread A forward to a safe state by interpreting the machine instruction currently is at A. A's state is then updated accordingly.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 17.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A system run on one or more processors for stopping threads in a safe state in a run-time environment comprising: a plurality of application threads; and, a native code interpreter which is configured to stop execution of an executing thread such that the executing thread is stopped, and the native code interpreter interprets machine code to determine if the executing thread is in a safe state, and wherein if the executing thread is not in a safe state, the native code interpreter moves the executing thread forward in steps and at each step determines the state until the executing thread is fi
- Claim 2Depends on #1
The system of claim 1 wherein the system includes a virtual machine and wherein said plurality of application threads execute as part of said virtual machine.
- Claim 3Depends on #1
The system of claim 1 wherein the system is used for
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 17 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (4)
- IBM Research Disclosure. "A Method for Suspending Threads at Safe Points." Mar. 1, 1999.
- INT Business Machines Corp. "Suspending threads at safe points-involves suspending thread until handler is called for thread execution." Feb. 20, 1999.
- Luo, Jiangchun et al. "Safe Termination of Java Classes." Nov. 24, 1999.
- Rudys, Algis et al. "Termination in Language-based Systems." Network and Distributed Systems Security Symposium 2001. Feb. 2001.