Method and apparatus for dynamically deoptimizing compiled activations
Abstract
Methods and apparatus for dynamically deoptimizing a frame in a control stack during the execution of a computer program are disclosed. The described methods are particularly suitable for use in computer systems that are arranged to execute both interpreted and compiled byte codes. According to one aspect of the present invention, a computer-implemented method for deoptimizing a compiled method includes creating a data structure. The data structure, which is separate from the control stack, is arranged to store information relating to the compiled method. A reference indicator, such as a pointer, is created to associate the data structure with the frame. The method, which is compiled to a first state of optimization, is then deoptimized to a second state of optimization, and the method in the first state of optimization may be discarded, thereby deoptimizing the frame. When control returns to the deoptimized frame, a migration routine creates at least one new stack frame, and execution may continue using the method in the second state of optimization.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 13.
Claims (0)
No claim text indexed for this record.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (0)
No backward patent references recorded.
Non-Patent Literature (5)
- DEUTSCH L P, SCHIFFMAN A M: "Efficient implementation of the Smalltalk-80 system" PROCEEDINGS OF THE 11TH ACM SIGACT-SIGPLAN SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, SALT LAKE CITY, UT, USA, 15-18 JAN. 1984, 18 January 1984 (1984-01-18), pages 297-302, XP002276578 ISBN: 0-89791-125-3
- H\LZLE U, CHAMBERS C, UNGAR D: "DEBUGGING OPTIMIZED CODE WITH DYNAMIC DEOPTIMIZATION" ACM SIGPLAN NOTICES, ASSOCIATION FOR COMPUTING MACHINERY, NEW YORK, US, vol. 27, no. 7, 1 July 1992 (1992-07-01), pages 32-43, XP000332427 ISSN: 0362-1340
- HUDAK P, KRANZ D: "A combinator-based compiler for a functional language" PROCEEDINGS OF THE 11TH ACM SIGACT-SIGPLAN SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, SALT LAKE CITY, UT, USA, 15-18 JAN. 1984, 18 January 1984 (1984-01-18), pages 122-132, XP002275960 ISBN: 0-89791-125-3
- MCDERMOTT D: "An efficient environment allocation scheme in an interpreter for a lexically-scoped LISP" PROCEEDINGS OF THE 1980 ACM CONFERENCE ON LISP AND FUNCTIONAL PROGRAMMING, STANFORD UNIVERSITY, CA, USA, 25-27 AUG. 1980, 27 August 1980 (1980-08-27), pages 154 -162, XP002275959
- STEENSGAARD B, JUL E: "Object and native code thread mobility among heterogeneous computers" FIFTEENTH ACM SYMPOSIUM ON OPERATING SYSTEMS PRINCIPLES, COPPER MOUNTAIN RESORT, CO, USA, 3-6 DEC. 1995, vol. 29, no. 5, pages 68-78, XP002276577 Operating Systems Review, Dec. 1995, ACM, USA ISSN: 0163-59