Method for JIT compiler to optimize repetitive synchronization
Abstract
Repetitive synchronization in program code is optimized through lock coarsening that is performed subject to a number of constraints. Using a forward pass over the program code followed by a backward pass, region extent bits may be determined that identify the points in the program where object locking can be coarsened. The program code may then be modified to realize coarsened locking regions determined based on the region extent bits. Alternatively, previously determined value numbers may provide much of the information collected by the two passes. In such a case, a single pass over the program code may locate features that limit lock coarsening opportunities. A set of synchronization operations that can be removed may then be determined and used when modifying the program code to coarsen locking regions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a just-in-time compiler of program code, the program code including a plurality of blocks of instructions and the program code, when executed, performing repetitive synchronization on a plurality of objects, a method of optimizing said repetitive synchronization, said method comprising the steps of: examining said program code to collect information about each block of said plurality of blocks to identify candidate locking operations and candidate unlocking operations in paths between an initial locking operation and a final unlocking operation, wherein said information includes a first sub
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (4)
- Aldrich et al., "Static analyses for eliminating unnecessary synchronization from Java programs," ACM, 1999.
- Bogda et al., "Removing unnecessary synchronization in Java," ACM.
- Diniz et al., "Lock Coarsening: Eliminating Lock Overhead in Automatically Parallelized Object-Based Programs," Springer, 1997.
- Rinard et al., "Eliminating synchronization bottlenecks in object-based programs using adaptive replication," ACM, 1999.