Invention Grant
US08108880B2 Method and system for enabling state save and debug operations for co-routines in an event-driven environment
失效
用于在事件驱动环境中启用状态保存和调试操作的方法和系统
- Patent Title: Method and system for enabling state save and debug operations for co-routines in an event-driven environment
- Patent Title (中): 用于在事件驱动环境中启用状态保存和调试操作的方法和系统
-
Application No.: US11682956Application Date: 2007-03-07
-
Publication No.: US08108880B2Publication Date: 2012-01-31
- Inventor: Douglas W. Dewey , Sangram Singh Ghoman , William G. Sherman , Shachar Fienblit
- Applicant: Douglas W. Dewey , Sangram Singh Ghoman , William G. Sherman , Shachar Fienblit
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Kunzler Needham Massey & Thorpe
- Main IPC: G06F9/46
- IPC: G06F9/46

Abstract:
A method of enabling state save and debug operations for co-routines for first failure data capture (FFDC) in an event-driven environment. A stack management utility allocates space for a context structure, which includes a state field, and a stack pointer in a buffer. A context management utility initializes a first context structure of a first co-routine and saves a state of the first context structure in response to an execution request for a second co-routine. The context management utility sets a second context structure as a current context. When execution of the current context is complete, the context management utility restores the first context structure of the first co-routine as the current context. If the state field is not set to a valid value, a state save function “state saves” all allocated co-routine stacks and context structures, restores the entire system to a previous valid state, and restarts operations.
Public/Granted literature
Information query