发明授权
US08108880B2 Method and system for enabling state save and debug operations for co-routines in an event-driven environment
失效
用于在事件驱动环境中启用状态保存和调试操作的方法和系统
- 专利标题: Method and system for enabling state save and debug operations for co-routines in an event-driven environment
- 专利标题(中): 用于在事件驱动环境中启用状态保存和调试操作的方法和系统
-
申请号: US11682956申请日: 2007-03-07
-
公开(公告)号: US08108880B2公开(公告)日: 2012-01-31
- 发明人: Douglas W. Dewey , Sangram Singh Ghoman , William G. Sherman , Shachar Fienblit
- 申请人: Douglas W. Dewey , Sangram Singh Ghoman , William G. Sherman , Shachar Fienblit
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Kunzler Needham Massey & Thorpe
- 主分类号: G06F9/46
- IPC分类号: G06F9/46
摘要:
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.