Invention Grant
- Patent Title: Using a virtual stack for fast and composable stack cutting
- Patent Title (中): 使用虚拟堆栈快速和可组合堆栈切割
-
Application No.: US11493718Application Date: 2006-07-26
-
Publication No.: US07904881B2Publication Date: 2011-03-08
- Inventor: James M. Stichnoth
- Applicant: James M. Stichnoth
- Applicant Address: US CA Santa Clara
- Assignee: Intel Corporation
- Current Assignee: Intel Corporation
- Current Assignee Address: US CA Santa Clara
- Agency: Blakely, Sokoloff, Taylor & Zafman LLP
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
Embodiments of a system and method for facilitating the use of stack cutting to be used in programming languages in a safe fashion even when composed with constructs that require destructor operations are described. For stack-based operations that require resolution through destructor operations (such as transactions, synchronization operations, deallocations, unlock operations, and the like), the destructor objects are stored in a virtual stack that is associated with the system stack, for use when a stack cut operation is performed. A container data structure stores an instantiation of the execution state at the cut back point. A virtual stack head pointer stores the location of the last destructor in the virtual stack. During a stack cut operation, the virtual stack is first unwound to execute the destructor operations until the stack frame of the container is reached. Other embodiments are described and claimed.
Public/Granted literature
- US20080028379A1 Using a virtual stack for fast and composable stack cutting Public/Granted day:2008-01-31
Information query