2011 · 32 citations · 12 references
ComputingComputer EngineeringComputer ScienceDistributed SystemsMessage PassingProgramming LanguagesConcurrency AnalysisConcurrent ProgrammingControl-flow AnalysisData-flow AnalysisShared-memory MultiprocessingActor ModelConcurrent ProcessesLocal StateMessage-passing AlgorithmsMessage-passing ModelsModular ProgrammingMulticore ArchitecturesOwnership Transfer Semantics
One of the more popular paradigms for concurrent programming is the Actor model of message passing; it has been adopted in one form or another by a number of languages and frameworks. By avoiding a shared local state and instead relying on message passing, the Actor model facilitates modular programming. An important challenge for message passing languages is to transmit messages efficiently. This requires retaining the pass-by-value semantics of messages while avoiding making a deep copy on sequential or shared memory multicore processors. A key observation is that many messages have an ownership transfer semantics; such messages can be sent efficiently using pointers without introducing shared state between concurrent objects. We propose a conservative static analysis algorithm which infers if the content of a message is compatible with an ownership transfer semantics. Our tool, called SOTER (for Safe Ownership Transfer enablER) transforms the program to avoid the cost of copying the contents of a message whenever it can infer the content obeys the ownership transfer semantics. Experiments using a range of programs suggest that our conservative static analysis method is usually able to infer ownership transfer. Performance results demonstrate that the transformed programs execute up to an order of magnitude faster than the original programs.
12
Precise interprocedural dataflow analysis via graph reachability
Thomas Reps, Susan Horwitz, Mooly Sagiv · 1995 · 1.2K citations
Program Analysis and Specialization for the C Programming Language
Lars Ole Andersen, Peter Lee · 2005 · 920 citations
Edward A. Lee · Computer · 2006 · 872 citations
A foundation for actor computation
Gul Agha, Ian A. Mason, Scott F. Smith et al. · Journal of Functional Programming · 1997 · 452 citations · Full text
Galen Hunt, James R. Larus · ACM SIGOPS Operating Systems Review · 2007 · 307 citations · Full text