Failure profiling for continued code optimization
Abstract
A method and an apparatus to continuously re-compile a code are described. The code can be compiled in a speculatively optimized manner from a source code to access an untyped variable according to a type prediction of runtime values for the untyped variable. Failures of the type prediction during the execution can be dynamically tracked. Each failure may be associated a runtime value with a type outside of the type prediction. The type prediction may be adjusted according to the failures tracked for future runtime values of the untyped variable. The source code can be recompiled for execution to optimize the access to the untyped variable for the future runtime values according to the adjusted type prediction.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A machine-readable non-transitory storage medium having instructions therein, which when executed by a machine, cause the machine to perform a method, the method comprising: executing a code compiled from a source code, the source code including an access of an untyped variable, the compiled code being speculatively optimized according to a type prediction for runtime values of the untyped variable, wherein the type prediction corresponds to a collection of possible types for the untyped variable; collecting a subset of the runtime values into a profile database during the execution; tracking
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- Arnold, Matthew , et al., "Dynamic Compilation and Adaptive Optimization in Virtual Machines", ACACES '06, IBM Corporation, 184 pgs., (Jul. 2006).
- Bartlett, Joel F., "Compacting Garbage Collection with Ambiguous Roots," Western Research Laboratory, Palo Alto, California, USA, Feb. 1988 (41 pgs.).
- Bartlett, Joel F., WRL Technical Note TN-12, "Mostly-Copying Garbage Collection Picks Up Generations and C++" Western Research Laboratory, Palo Alto, California, USA Oct. 1989 (20 pgs.).
- Bugliesi, et al., "Type Inference for Variant Object Types," Information and Computation 177, 2-27 (2002) pp. 2-27 (26 pgs.).
- Cheney, C. J., "A Nonrecursive List Compacting Algorithm" Communications of the ACM, vol. 13, No. 11, Nov. 1970, pp. 677-678 (2 pgs.).