Patent ID: 9251042
Filing Date: 2016-02-02
CPC Classification: G06F

Claim Text:
1. A computer program product for protecting a managed runtime from stack corruption due to native code condition handling, the computer program product comprising: a computer recordable-type storage device containing computer executable program code stored thereon, the computer executable program code comprising: computer executable program code for percolating a condition by a native condition handler associated with a managed runtime; computer executable program code for receiving, by a condition handler of the managed runtime, notification of the condition in a native code portion; computer executable program code for marking, by the condition handler of the managed runtime, a thread associated with the condition as a marked thread; computer executable program code for determining, by the native code handler, whether to resume execution of the marked thread by either a “call back into” or a “return to” the managed runtime; computer executable program code for, responsive to a determination to resume execution of the marked thread by either calling back into or returning to the managed runtime, determining, by the managed runtime, whether a request is associated with the marked thread; computer executable program code for, responsive to a determination that the request is associated with the marked thread, performing diagnostics by the managed runtime; and computer executable program code for terminating the managed runtime.