Method and apparatus for detecting lock acquisition hierarchy violations and unsafe lock releases
Abstract
A thread analysis tool records a set of currently-held synchronization objects and currently-acquired objects when a thread acquires one or more objects, then searches for a lock acquisition hierarchy violation that may cause program deadlock. If a violation is found, it is reported to the user. Software to implement the methods of the analysis tool, and systems using the methods, are also described and claimed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: for a first thread which acquires a synchronization primitive, recording a set of currently-held synchronization primitives and a set of currently-acquired synchronization primitives; indicating a possibly-unsafe lock release when the first thread releases a resource set s of resource set elements r and one or more of the resource set elements r of the resource set s was not among a plurality of resource set elements acquired by the first thread on entry to the synchronization primitive previously acquired by the first thread; constructing a graph of connected nodes, where
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 9,317,262 B2 | Identification of code synchronization points | 2016 | 0 |
| US 2015121352 A1 | Identification of code synchronization points | — | 3 |
References Cited — Backward Prior Art (18)
Non-Patent Literature (4)
- Anderson, Thomas E., Anderson, Thomas E., "The Performance of Spin Lock Alternatives for Shared-Memory Multiprocessors," IEEE Transactions on Parallel and Distributed Systems, vol. 1, No. 1, pp. 6-16, Jan. 1990.
- Mellor-Crummey, J.M. , et al., Mellor-Crummey, J.M., et al., "Algorithms for Scalable Synchronization on Shared-Memory Multiprocessors," pp. 1-41, Jan. 1991.
- Office Action for U.S. Appl. No. 11/473,580 dated Oct. 26, 2010, 15 pages.
- Office Action for US. Appl. No. 11/473,580 dated Mar. 28, 2011, 15 pages.