Title :
Inferring Method Effect Summaries for Nested Heap Regions
Author :
Vakilian, Mohsen ; Dig, Danny ; Bocchino, Robert ; Overbey, Jeffrey ; Adve, Vikram ; Johnson, Ralph
Author_Institution :
Univ. of Illinois at UrbanaChampaign, Urbana, IL, USA
Abstract :
Effect systems are important for reasoning about the side effects of a program. Although effect systems have been around for decades, they have not been widely adopted in practice because of the large number of annotations that they require. A tool that infers effects automatically can make effect systems practical. We present an effect inference algorithm and an Eclipse plug-in, DPJizer, which alleviate the burden of writing effect annotations for a language called Deterministic Parallel Java (DPJ). The key novel feature of the algorithm is the ability to infer effects on nested heap regions. Besides DPJ, we also illustrate how the algorithm can be used for a different effect system based on object ownership. Our experience shows that DPJizer is both useful and effective: (i) inferring effect annotations automatically saves significant programming burden; and (ii) inferred effects are more precise than those written manually, and are fine-grained enough to enable the compiler to prove determinism of the program.
Keywords :
Java; inference mechanisms; parallel languages; parallel programming; DPJizer; Eclipse plug-in; deterministic parallel Java; effect inference algorithm; inferring method effect summaries; nested heap region; object ownership; Engines; Heart; Inference algorithms; Java; Lab-on-a-chip; Program processors; Programming profession; Safety; Software engineering; Writing;
Conference_Titel :
Automated Software Engineering, 2009. ASE '09. 24th IEEE/ACM International Conference on
Conference_Location :
Auckland
Print_ISBN :
978-1-4244-5259-0
Electronic_ISBN :
1938-4300
DOI :
10.1109/ASE.2009.68