发明授权
- 专利标题: System and method for implementing hybrid single-compare-single-store operations
- 专利标题(中): 实现混合单比较单店操作的系统和方法
-
申请号: US11967358申请日: 2007-12-31
-
公开(公告)号: US07793052B2公开(公告)日: 2010-09-07
- 发明人: James R. Goodman , Mark S. Moir , Fu'ad W. F. Al Tabba′ , Cong Wang
- 申请人: James R. Goodman , Mark S. Moir , Fu'ad W. F. Al Tabba′ , Cong Wang
- 申请人地址: US CA Redwood City
- 专利权人: Oracle America, Inc.
- 当前专利权人: Oracle America, Inc.
- 当前专利权人地址: US CA Redwood City
- 代理机构: Meyertons, Hood, Kivlin, Kowert & Goetzel, P.C.
- 代理商 Robert C. Kowert
- 主分类号: G06F12/00
- IPC分类号: G06F12/00
摘要:
A hybrid Single-Compare-Single-Store (SCSS) operation may exploit best-effort hardware transactional memory (HTM) for good performance in the case that it succeeds, and may transparently resort to software-mediated transactions if the hardware transactional mechanisms fail. The SCSS operation may compare a value in a control location to a specified expected value, and if they match, may store a new value in a separate data location. The control value may include a global lock, a transaction status indicator, and/or a portion of an ownership record, in different embodiments. If another transaction in progress owns the data location, the SCSS operation may abort the other transaction or may help it complete by copying the other transactions' write set into its own right set before acquiring ownership. A hybrid SCSS operation, which is usually nonblocking, may be applied to building software transactional memories (STMs) and/or hybrid transactional memories (HyTMs), in some embodiments.
公开/授权文献
信息查询