2007 · 19 citations · 26 references
ComputingComputer ScienceFault ToleranceFault-tolerant ComputingProgramming LanguagesConcurrency AnalysisConcurrency ControlConcurrent ProgrammingRace Condition VulnerabilitiesType CheckingType SystemsAlias StructureBlock Structure AnalysisData-race FreedomRuntime Type CheckingRuntime Type SystemsStatic Concurrency AnalysisStatic Race DetectionStatic Type Checking
In previous work on SafeJava we presented a type system extension to the Java source language that statically prevents data races and deadlocks in multithreaded programs. SafeJava is expressive enough to support common programming patterns, its type checking is fast and scalable, and it requires little programming overhead. SafeJava thus offers a promising approach for making multithreaded programs more reliable. This paper presents a corresponding type system extension for the Java virtual machine language (JVML). We call the resulting language SafeJVML. Well-typed SafeJVML programs are guaranteed to be free of data races and deadlocks. Designing a corresponding type system for JVML is important because most Java code is shipped in the JVML format. Designing acorresponding type system for JVML is nontrivial because of important differences between Java and JVML. In particular, the absence of block structure in JVML programs and the fact that they do not use named local variables the way Java programs do make the type systems for Java and JVML significantly different. For example, verifying absence of races and deadlocks in JVML programs requires performing an alias analysis, something that was not necessary for verifying absence of races and deadlocks in Java programs. This paper presents static and dynamic semantics for Safe JVML. It also includes a proof that the SafeJVML type system is sound and that it prevents data races and deadlocks. To the best of our knowledge, this is the first type system for JVML that statically ensures absence of synchronization errors.
26
Ownership types for flexible alias protection
David G. Clarke, John Potter, James Noble · 1998 · 578 citations · Full text
Ownership types for safe programming
Chandrasekhar Boyapati, Robert Lee, Martin Rinard · 2002 · 571 citations
Matthew Flatt, Shriram Krishnamurthi, Matthias Felleisen · 1998 · 491 citations · Full text
Type-based race detection for Java
Cormac Flanagan, Stephen N. Freund · 2000 · 446 citations
A parameterized type system for race-free Java programs
Chandrasekhar Boyapati, Martin Rinard · 2001 · 298 citations