Super Handling Routine for Critical Exception Recovery
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current exception handling mechanisms fail to effectively manage critical problem exceptions such as specific interrupt exceptions, infinite loop exceptions, and out of memory exceptions, which can lead to application termination without providing an opportunity for recovery.
Innovation Solution
A computer-implemented method and system that detects critical problem exceptions and invokes a Super Handling Routine (SHR) registered by the application, allowing the SHR to handle these exceptions by transferring control and context to the SHR for appropriate action, such as terminating an invoked application, breaking infinite loops, or requesting additional memory.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If current exception handling mechanisms are used, then normal exceptions can be handled, but critical problem exceptions cause application termination without recovery opportunity
Solution Approach 1:
The system performs preliminary action by pre-registering a Super Handling Routine (SHR) at a predetermined context before critical exceptions occur. When a critical exception is detected, the system immediately transfers control to the pre-registered SHR, enabling recovery without termination. This preliminary setup allows the application to handle critical problems like interrupt exceptions, infinite loops, and memory exhaustion that would otherwise cause abrupt termination.
2Stability of the object's composition
If application terminates on critical exception, then system stability is maintained, but application recovery is prevented
Solution Approach 1:
The Super Handling Routine (SHR) acts as an intermediary between critical exceptions and application termination. When a critical exception occurs, control is transferred to the SHR which serves as a mediator to handle the exception appropriately. The SHR can break infinite loops, manage interrupt exceptions, request additional memory, or terminate invoked applications, thereby maintaining system stability while enabling application recovery without abrupt termination.
3Reliability
If SHR is invoked for critical exceptions, then application recovery is enabled, but additional processing overhead is introduced
Solution Approach 1:
The system performs preliminary action by pre-registering the Super Handling Routine (SHR) at a predetermined context before critical exceptions occur. This pre-registration eliminates the need for complex search or selection processes when an exception occurs, allowing immediate transfer of control to the appropriate SHR. The pre-configured approach reduces processing overhead and time loss compared to dynamic exception handler selection, enabling fast recovery from critical exceptions.
Data Source
AI summary
Methods, apparatus, computer program products for handling critical problem exceptions during an execution of an application are provided. The method comprises: detecting, by one or more processing units, an occurrence of a certain type of critical problem exception during an execution of an application, the critical problem exception resulting in a termination of the application; instructing, by one or more processing units, to call a Super Handling Routine (SHR) corresponding to the type of the critical problem exception at a pre-configured address based on a pre-determined context registered by the application, the SHR being configured to handle critical problem exceptions; and handing, by one or more processing units, control to the SHR to handle the type of the critical problem exception.


