Debugging optimized code with dynamic deoptimization
Authors:
- Urs HölzleUHUrs Hölzle
- Craig ChambersCCCraig Chambers
- David UngarDUDavid Ungar
Open Access
- 1 July 1992
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 27 (7) , 32-43
Abstract
SELF's debugging system provides complete source-level debugging ( expected behavior ) with globally optimized code. It shields the debugger from optimizations performed by the compiler by dynamically deoptimizing code on demand. Deoptimization only affects the procedure activations that are actively being debugged; all other code runs at full speed. Deoptimization requires the compiler to supply debugging information at discrete interrupt points ; the compiler can still perform extensive optimizations between interrupt points without affecting debuggability. At the same time, the inability to interrupt between interrupt points is invisible to the user. Our debugging system also handles programming changes during debugging. Again, the system provides expected behavior: it is possible to change a running program and immediately observe the effects of the change. Dynamic deoptimization transforms old compiled code (which may contain inlined copies of the old version of the changed procedure) into new versions reflecting the current source-level state. To the best of our knowledge, SELF is the first practical system providing full expected behavior with globally optimized code.Keywords
This publication has 9 references indexed in Scilit:
- Making pure object-oriented languages practical1991
- Debugging standard ML without reverse engineering1990
- Interactive type analysis and extended message splitting; optimizing dynamically-typed object-oriented programs1990
- An efficient implementation of SELF a dynamically-typed object-oriented language based on prototypes1989
- DOC: a practical approach to source-level debugging of globally optimized code1988
- TS: an optimizing compiler for smalltalkACM SIGPLAN Notices, 1988
- Self: The power of simplicity1987
- Efficient implementation of the smalltalk-80 system1984
- Symbolic Debugging of Optimized CodeACM Transactions on Programming Languages and Systems, 1982