Profile-driven lock handling
Abstract
An apparatus, program product and method utilize metadata collected for a lock in a computer program to determine an optimal lock acquisition strategy for the lock. The metadata is typically collected via profiling of the computer program to determine a wait characteristic for the lock in the particular runtime environment in which the computer program executes, and the metadata is used to select from among different lock access implementations to be used to attempt to acquire the lock, often enabling an optimum lock access implementation to be selected for a lock.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of processing program code configured to access a lock, the method comprising: profiling the program code to collect metadata associated with the lock for a particular runtime environment; in a first thread attempting to access the lock being held by a second thread, accessing the metadata associated with the lock to determine an expected total wait time for the lock to be held; tracking a how long the lock has already been held by the second thread while the lock is held by the second thread; in the first thread, determining from the expected total wait time and
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 (13)
Non-Patent Literature (4)
- "BEA JRockit®: Java* for the Enterprise," White Paper, 2005.
- Brian Goetz, "Java Theory and Practice: Synchronization Optimization in Mustang," Oct. 18, 2005, http://www-128.ibm.com/developerworks/java/library/j-jtp10185/.
- Eva Andreasson, "New Features and Tools in JRockit 5.0," Feb. 22, 2005, http://dev2dev.bea.com/pub/a/2005/02/jrockit5-new-features.html.
- Kreahling, W.C. and Norris, C., Profile Assisted Register Allocation, Proceedings of the 2000 ACM Symposium on Applied Computing, 2000, pp. 774-781.