2014 · 13 citations · 8 references
ComputingComputer ScienceCompilersFormal MethodsProgramming LanguagesConcurrency AnalysisConcurrent ProgrammingControl-flow AnalysisData-flow AnalysisRace Condition VulnerabilitiesType CheckingRace ConditionsSafety PoliciesSoftware Evolution AnalysisStatic Race DetectionStatic Type CheckingThread SafetyThread Safety AnalysisVoluntary Adoption
Writing multithreaded programs is hard. Static analysis tools can help developers by allowing threading policies to be formally specified and mechanically checked. They essentially provide a static type system for threads, and can detect potential race conditions and deadlocks. This paper describes Clang Thread Safety Analysis, a tool which uses annotations to declare and enforce thread safety policies in C and C++ programs. Clang is a production-quality C++ compiler which is available on most platforms, and the analysis can be enabled for any build with a simple warning flag: -Wthread-safety. The analysis is deployed on a large scale at Google, where it has provided sufficient value in practice to drive widespread voluntary adoption. Contrary to popular belief, the need for annotations has not been a liability, and even confers some benefits with respect to software evolution and maintenance.
8
Jean-Yves Girard · Theoretical Computer Science · 1987 · 4.1K citations
Stefan Savage, Michael T. Burrows, Greg Nelson et al. · ACM Transactions on Computer Systems · 1997 · 1.6K citations · Full text
A view of the parallel computing landscape
Krste Asanović, Rastislav Bodík, James Demmel et al. · Communications of the ACM · 2009 · 627 citations · Full text
Konstantin Serebryany, Timur Iskhodzhanov · 2009 · 434 citations
A parameterized type system for race-free Java programs
Chandrasekhar Boyapati, Martin Rinard · 2001 · 298 citations