Value profiling for code optimization
Abstract
A method and an apparatus to execute a code with value profiling are described. The code may include an access to an untyped variable. During the execution, runtime values of the untyped variable may be randomly inspected. A value profile may be established to predict one or more expected types of future runtime values for the untyped variable. The code may be recompiled according to the value profile to optimize the access of the untyped variable for the future runtime values.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 48 · Forward citations: 7.
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 compiled code of a source code, the source code including an access of an untyped variable, wherein runtime data of the execution includes structures allocated for runtime values assigned to the untyped variable; storing at least one of the runtime values assigned to the untyped variable in a storage location without specifying a type; randomly inspecting, during the execution, the runtime values assigned to th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (48)
Non-Patent Literature (5)
- Bartlett, Joel F., "Compacting Garbage Collection with Ambiguous Roots," Western Research Laboratory, Feb. 1988 (41 pages).
- Bartlett, Joel F., WRL Technical Note TN-12, "Mostly-Copying Garbage Collection Picks Up Generations and C++", Western Research Laboratory, Oct. 1989 (20 pages).
- 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).
- Chilimbi, Trishul M. et al., "Low-Overhead Memory Leak Detection Using Adaptive Statistical Profiling," ACM, ASPLOS'04, Oct. 9-13, 2004, Boston, MA (pp. 156-164).