Patent ID: 9606829
Date: 2017-03-28
CPC Classifications: G06F

Claim:
1. A computer-implemented method for suspending transactional memory transactions without stack corruption, said method comprising: invoking a first function that begins a transactional memory transaction, said first function being allocated a first function stack frame on a default program stack; returning from said first function and deallocating said first function stack frame; prior to suspending said transaction, or after suspending said transaction but prior to allocating any suspended mode stack frames, performing either of the following operations: (1) switching from said default program stack to an alternative program stack, or (2) switching from a default region of said default program stack where said first function stack frame was allocated to an alternative region of said default program stack; and prior to resuming said transaction, or after resuming said transaction but prior to allocating any transaction mode stack frames, performing either of the following operations: (1) switching from said alternative program stack to said default program stack, or (2) switching from said alternative region of said default program stack to said default region of said default program stack.