2002 · 38 citations · 18 references
ComputingComputer EngineeringComputer ScienceProgramming LanguagesSafety EngineeringSystems ProgrammingConcurrency AnalysisConcurrency ControlConcurrent ProgrammingControl-flow AnalysisRace Condition VulnerabilitiesSynchronization PrimitivesData Race AnalysisDesign Intent CaptureDesign Intent ModelingEncapsulationRace Condition AnalysisRace ConditionsThread SafetyThread Safety Analysis
Assuring and evolving concurrent programs requires understanding the concurrency-related design decisions used in their implementation. In Java-style shared-memory programs, these decisions include which state is shared, how access to it is regulated, the roles of threads, and the policy that distinguishes desired concurrency from race conditions. These decisions rarely have purely local manifestations in code.In this paper, we use case studies from production Java code to explore the costs and benefits of a new annotation-based approach for expressing design intent. Our intent is both to assist in establishing "thread safety" attributes in code and to support tools that safely restructure code---for example, shifting critical section boundaries or splitting locks. The annotations we use express "mechanical" properties such as lock-state associations, uniqueness of references, and encapsulation of state into named aggregations. Our analyses revealed race conditions in our case study samples, drawn from open-source projects and library code.The novel technical features of this approach include (1) flexible encapsulation via aggregations of state that can cross object boundaries, (2) the association of locks with state aggregations, (3) policy descriptions for allowable method interleavings, and (4) the incremental process for inserting, validating, and exploiting annotations.
18
An axiomatic proof technique for parallel programs I
Susan Owicki, David Gries · Acta Informatica · 1976 · 1K citations
David Garlan, Robert T. Monroe, David S. Wile · 2010 · 665 citations
Ownership types for flexible alias protection
David G. Clarke, John Potter, James Noble · 1998 · 578 citations · Full text
Enforcing high-level protocols in low-level software
Robert DeLine, Manuel Fähndrich · 2001 · 487 citations
Type-based race detection for Java
Cormac Flanagan, Stephen N. Freund · 2000 · 446 citations