2010 · 12 citations · 33 references
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureProgramming LanguagesConcurrent ProgrammingControl-flow AnalysisMemory SafetyRace Condition VulnerabilitiesSynchronization PrimitivesThread ProgrammingAtomic OperationsData-race FreedomHierarchyLocksOpenmpPerformance OverheadRace ConditionsRegion-based Memory Management
We present the design of a formal low-level multi-threaded language with advanced region-based memory management and synchronization primitives, where well-typed programs are memory safe and race free. In our language, regions and locks are combined in a single hierarchy and are subject to uniform ownership constraints imposed by a hierarchical structure: deallocating a region causes its sub-regions to be deallocated. Similarly, when a region is protected, then its sub-regions are also protected. We discuss aspects of the integration and implementation of the formal language within Cyclone and evaluate the performance of code produced by the modified Cyclone compiler against highly optimized C programs using atomic operations, pthreads, and OpenMP. Although our implementation is still in a preliminary stage, our results show that the performance overhead for guaranteed race freedom and memory safety is acceptable.
33
David Gay, Philip Levis, Robert von Behren et al. · ACM SIGPLAN Notices · 2014 · 1.7K citations
David Gay, Philip Levis, Robert von Behren et al. · 2003 · 860 citations
Ownership types for safe programming
Chandrasekhar Boyapati, Robert Lee, Martin Rinard · 2002 · 571 citations