A method and apparatus in a data processing system for handling exceptions
generated during an execution of instructions. An exception is detected,
wherein the exception results from the execution of the instructions,
wherein the exception has a location within the instructions. A
determination is made as to whether the exception has occurred in a
compiled portion of the instructions. Responsive to a determination that
the exception has occurred in a compiled portion of the instructions, an
identification of the compiled portion of the instructions is added to a
data structure.