System using backward inter-procedural analysis for determining alternative coarser grained lock when finer grained locks exceeding threshold
Abstract
Locks which protect data structures used within atomic sections of concurrent programs are inferred from atomic sections and acquired in a manner to avoid deadlock. Locks may be inferred by expression correspondence using a backward inter-procedural analysis of an atomic section. Locks may be sorted according to a total order and acquired early in an atomic section to prevent deadlock. Multiple granularity of locks are determined and employed. Fine grained locks may be inferred and acquired to reduce contention. Coarse grained locks may be determined and substituted for fine grained locks when necessary for unbounded locations or to reduce the number of finer grained locks.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of acquiring one or more locks within a concurrent program, the method comprising: identifying an atomic section within the concurrent program, the atomic section including a plurality of statements that reference a plurality of variables used within the atomic section, wherein each variable refers to a memory location; performing a backwards inter-procedural analysis on the atomic section to determine which of the memory locations need to be locked during execution of the atomic section, the backwards inter-procedural analysis comprising examining lines of code w
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (5)
- "Autolocker: Synchronization Inference for Atomic Sections," by Bill McCloskey, Feng Zhou, David Gay and Eric Brewer, UC Berkeley, Intel Research, Copyright 2006 ACM, [online] [retrieved on Nov. 27, 2006], 13 pgs. Retrieved from the Internet: http://berkeley.intel-research.net/dgay/pubs/06-popl-auto
- "First Year Report-Path Inference for Atomic Sections," by Dave Cunningham, date unknown, [online] [retrieved on Nov. 27, 2006], 25 pgs. Retrieved from the Internet: http://www.doc.ic.ac.uk/~dc04/1st-year-report.pdf.
- "First Year Report—Path Inference for Atomic Sections," by Dave Cunningham, date unknown, [online] [retrieved on Nov. 27, 2006], 25 pgs. Retrieved from the Internet: http://www.doc.ic.ac.uk/˜dc04/1st—year—report.pdf.
- "Lock Allocation," by Michael Emmi, Jeffrey S. Fischer, Ranjit Jhala and Rupak Majumdar, UC Los Angeles, UC San Diego, Copyright 2007 ACM, [online] [retrieved on Nov. 27, 2006], 6 pgs. Retrieved from the Internet: www.cs.ucla.edu/~fischer/papers/pop107-locking.ps.
- "Lock Allocation," by Michael Emmi, Jeffrey S. Fischer, Ranjit Jhala and Rupak Majumdar, UC Los Angeles, UC San Diego, Copyright 2007 ACM, [online] [retrieved on Nov. 27, 2006], 6 pgs. Retrieved from the Internet: www.cs.ucla.edu/˜fischer/papers/pop107—locking.ps.