Invention Grant
US08510722B2 Detecting data race and atomicity violation via typestate-guided static analysis
有权
通过类型指导静态分析检测数据竞争和原子性违规
- Patent Title: Detecting data race and atomicity violation via typestate-guided static analysis
- Patent Title (中): 通过类型指导静态分析检测数据竞争和原子性违规
-
Application No.: US12507230Application Date: 2009-07-22
-
Publication No.: US08510722B2Publication Date: 2013-08-13
- Inventor: Yue Yang , Anna Gringauze , Dinghao Wu , Henning K. Rohde
- Applicant: Yue Yang , Anna Gringauze , Dinghao Wu , Henning K. Rohde
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Agency: Chin IP, PLLC
- Agent David Chin
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
Mechanisms for analyzing computer instructions implementing a program in which typestate analysis is informed by concurrency analysis. The concurrency-guided typestate analysis may simulate the “worst case” scenario due to thread interleaving by transitioning a simulated state of the variable to a special state whenever the variable is not guarded by its intended guarding lock. While in the special state, the analysis may assume that the state of the simulated variable is the worst possible state with respect to processing operations that may lead to an error depending on the state of the variable. Thus, the analysis performed may assume that referencing the variable in a state-dependent operation while the simulated state of the variable is in the special state may lead to an error, and the analysis may generate a warning, accordingly. The analysis may process the computer instructions to infer which lock is intended to guard a shared variable.
Public/Granted literature
- US20110022893A1 DETECTING DATA RACE AND ATOMICITY VIOLATION VIA TYPESTATE-GUIDED STATIC ANALYSIS Public/Granted day:2011-01-27
Information query