Identifying code that wastes time switching tasks
Abstract
A method of detecting portions of code of a computer program that protect resources of a computer system unnecessarily can include identifying threads and synchronization objects that are used by a computer program during execution, determining the number of threads that have accessed each resource while it has been consistently protected by a particular synchronization object, and indicating whether the resource is suited for protection according to the number of threads that have accessed the resource.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of detecting portions of code of a computer program that protect resources of a computer system unnecessarily, said method comprising: identifying a synchronization object that has been engaged by a thread of the computer program; while the synchronization object is engaged, determining whether state memory has been allocated for a resource of the computer system that is protected by the synchronization object and, if state memory has not been allocated, allocating state memory for recording accesses to the resource; recording each access of the resource and a thread associated with t
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 (19)
Non-Patent Literature (5)
- Bacon et al., "Thin locks: featherweight Synchronization for Java", Apr. 2004, pp. 583-595, .
- Bacon et al., "Thin locks: featherweight Synchronization for Java", Apr. 2004, pp. 583-595, <http://delivery.acm.org/10.1145/990000/989452/p583-bacon.pdf>.
- Begic, An Introduction to Runtime Analysis with Rational PurifyPlus, The Rational Edge, Dec. 2002, pp. 1-18 (accessed Apr. 6, 2010) .
- Begic, An Introduction to Runtime Analysis with Rational PurifyPlus, The Rational Edge, Dec. 2002, pp. 1-18 (accessed Apr. 6, 2010) <http://www.ibm.com.developerworks/rational/library/content/03July/2000/2315/2315—GB.pdf>.
- Choi et al., "Stack allocation and synchronization optimizations for Java using escape analysis", Nov. 2003, pp. 876-909, .