Code optimization when using multiple reader locks and a non-reader lock
Abstract
A way to use multiple-reader locks for those paths where no writes occur is provided. Only if one of the writing paths executes will a full writer lock be acquired. Two copies of the critical section comprising a reading version and a writing version are created. The default execution leads to the reader version, which only acquires a reader-lock. The reader version of the code executes prior to execution of the writer lock only version, otherwise bypassing the writer lock only version. If the execution leads to a path in which a write would occur, the reader only version branches to the beginning of the writer version. The writer version is identical to the original code and obtains a full writer lock. If execution in the reader lock does not lead to a path that writes, then only the reader lock is acquired.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method for optimization of computer usable program code segment containing multiple reader locks having a non-reader lock therein, the computer implemented method comprising: obtaining computer usable program code that is to be compiled; responsive to obtaining the computer usable code that is to be compiled, identifying, by a compiler, a critical segment within the computer usable program code; replicating the critical segment to create a replicated segment; and transforming the critical segment by establishing a reader lock only version of the critical segment and a wr
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (12)
Non-Patent Literature (1)
- Bruening, et al. "Thread-Shared Software Code Caches", 2006, IEEE, p. 1-11.