Mining for Safety using Interactive Trace Analysis
Year: 2017
Type: conference-paper
Abstract: This paper presents the results of a trace-based study of object and reference properties on a subset of the DaCapo benchmark suite with the intent to uncover facts about programs that can be leveraged by type systems, compilers and run-times. In particular, we focus on aliasing, and immutability, based on their recent application in the literature. To facilitate analyses like this one, we previously created Spencer (http://spencer-t.racing,[8]), a web based tool and API that hosts dynamic trace data and enables researchers to query and analyse the data. In this paper we only use data that are openly accessible via Spencer's API -all code written for this paper (not counting Spencer itself) amounts to 13 lines of bash and 260 lines of python to plot the results. We find that while Java allows aliasing and mutation by default, objects are often unique, unique on the heap, immutable, or stack-bound -97.7% of objects fulfill at least one of these properties. Furthermore, uniqueness and immutability, or their absence, are class-properties, not object-properties: e.g.,, it is surprisingly rare for classes to produce both immutable and mutable instances. Although we use a different, more fine-grained, methodology, our findings confirm prior results.1 avrora, batik, fop, h2, luindex, lusearch, pmd, sunflow, and xalan.2 Our events: object creation; method entry and exit; field loads and stores; variable loads and stores.
Authors: Stephan Brandauer, Tobias Wrigstad
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W2772724293
