Debugging optimized code with dynamic deoptimization
Urs Hölzle, Craig Chambers, David Ungar · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1992
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.
Cited by 302 works. doi:10.1145/143095.143114
Authors
References
- Self: The power of simplicity
- Efficient implementation of the smalltalk-80 system
- An efficient implementation of SELF a dynamically-typed object-oriented language based on prototypes
- Symbolic Debugging of Optimized Code
- TS: an optimizing compiler for smalltalk
- Optimizing dynamically-typed object-oriented languages with polymorphic inline caches
- Making pure object-oriented languages practical
- The design and implementation of the self compiler, an optimizing compiler for object-oriented programming languages
- Interactive type analysis and extended message splitting; optimizing dynamically-typed object-oriented programs
- An efficient implementation of SELF a dynamically-typed object-oriented language based on prototypes