Systems and methods of reporting multiple threads involved in a potential data race
Abstract
Criteria are defined for determining when additional stack dumps would be saved and presented (e.g., to the developer). This provides more information for the developer to use for debugging, and yet does not overburden the developer with irrelevant information. Suspicious activity worthy of an additional stack dumps may be defined as a thread accessing an already suspicious location that is different than the original thread, a write access being made and no write access having yet been made to the target location, or if the lockset being held by the thread accessing the location is omitted from the intersection of all locksets involved in stack dumps for the location.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 9.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of reporting a warning involving a prospective data race among a plurality of threads of a multithreaded computer program, comprising: monitoring lock acquisition and memory accesses to a memory location and computing a memory access pattern for each memory access; determining whether a memory access to the location by a thread results in a suspicious memory access pattern for the location and, if so, dumping the stack of the thread detecting a subsequent memory access to the location; determining if at least one predetermined criterion regarding the subsequent memory access is met; a
- Claim 2Depends on #1
The method of claim 1 , wherein the at least one predetermined criterion comprises whether the thread making the subsequent access has
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 (18)
Non-Patent Literature (5)
- Mellor-Crummey, J., "On-the-Fly Detection of Data Races for Programs with Nested Fork-Join Parallelism", Supercomputing, 1991, 24-33.
- Nishiyama, H., "Detecting Data Races using Dynamic Escape Analysis based on Read Barrier", Proceedings of the Third Virtual Machine Research and Technology Symposium, May 6-7, 2004, 13 pages.
- Savage, S. et al., "Eraser: A Dynamic Data Race Detector for Multithreaded Programs", ACM Transactions on Computer Systems, Nov. 1997, 15(4), 391-411.
- von Praun, C. et al., "Object Race Detection", OOPSLA, 2001, 70-82.
- Yu, Y. et al., "RaceTrack: Race Detection for Managed Code", Presentation at Microsoft TechFest, Mar. 3-4, 2004, 39 pages.