In preparing inlined program code for compiling, a synchronization depth
is recorded in a table for ranges of program counter addresses.
Furthermore, a stack frame is dedicated for the recordation of references
to objects locked during the execution of the code. Such references are
recorded in the stack frame at a location based on synchronization depth.
When an exception occurs, the synchronization depth may be determined
from the table and used to obtain, from the stack frame, a reference to
an object from which a lock should be removed.