Aibek Sarimbekov, Andrej Podzimek, L. Bulej, Y. Zheng, Nathan P. Ricci, Walter Binder
{"title":"Characteristics of dynamic JVM languages","authors":"Aibek Sarimbekov, Andrej Podzimek, L. Bulej, Y. Zheng, Nathan P. Ricci, Walter Binder","doi":"10.1145/2542142.2542144","DOIUrl":"https://doi.org/10.1145/2542142.2542144","url":null,"abstract":"The Java Virtual Machine (JVM) has become an execution platform targeted by many programming languages. However, unlike with Java, a statically-typed language, the performance of the JVM and its Just-In-Time (JIT) compiler with dynamically-typed languages lags behind purpose-built language-specific JIT compilers. In this paper, we aim to contribute to the understanding of the workloads imposed on the JVM by dynamic languages. We use various metrics to characterize the dynamic behavior of a variety of programs written in three dynamic languages (Clojure, Python, and Ruby) executing on the JVM. We identify the differences with respect to Java, and briefly discuss their implications.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"187A 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2013-10-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115715482","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Gilles Duboscq, Thomas Würthinger, Lukas Stadler, Christian Wimmer, Doug Simon, H. Mössenböck
{"title":"An intermediate representation for speculative optimizations in a dynamic compiler","authors":"Gilles Duboscq, Thomas Würthinger, Lukas Stadler, Christian Wimmer, Doug Simon, H. Mössenböck","doi":"10.1145/2542142.2542143","DOIUrl":"https://doi.org/10.1145/2542142.2542143","url":null,"abstract":"We present a compiler intermediate representation (IR) that allows dynamic speculative optimizations for high-level languages. The IR is graph-based and contains nodes fixed to control flow as well as floating nodes. Side-effecting nodes include a framestate that maps values back to the original program. Guard nodes dynamically check assumptions and, on failure, deoptimize to the interpreter that continues execution. Guards implicitly use the framestate and program position of the last side-effecting node. Therefore, they can be represented as freely floating nodes in the IR. Exception edges are modeled as explicit control flow and are subject to full optimization. We use profiling and deoptimization to speculatively reduce the number of such edges. The IR is the core of a just-in-time compiler that is integrated with the Java HotSpot VM. We evaluate the design decisions of the IR using major Java benchmark suites.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"74 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2013-10-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"133395116","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Edd Barrett, Carl Friedrich Bolz-Tereick, L. Tratt
{"title":"Unipycation: a case study in cross-language tracing","authors":"Edd Barrett, Carl Friedrich Bolz-Tereick, L. Tratt","doi":"10.1145/2542142.2542146","DOIUrl":"https://doi.org/10.1145/2542142.2542146","url":null,"abstract":"Language composition approaches have traditionally suffered from poor performance. In this paper we hypothesise that meta-tracing provides a means to compose independent language interpreters while retaining the performance levels of each. To study this approach, we compose Python and Prolog interpreters to form Unipycation. We present a case study of its use and a suite of micro-benchmarks which give us some understanding of its cross-language performance.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"6 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2013-10-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131416081","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Y. Zheng, Lubomiír Bulej, Cheng Zhang, Stephen Kell, Danilo Ansaloni, Walter Binder
{"title":"Dynamic optimization of bytecode instrumentation","authors":"Y. Zheng, Lubomiír Bulej, Cheng Zhang, Stephen Kell, Danilo Ansaloni, Walter Binder","doi":"10.1145/2542142.2542145","DOIUrl":"https://doi.org/10.1145/2542142.2542145","url":null,"abstract":"Accuracy, completeness, and performance are all major concerns in the context of dynamic program analysis. Emphasizing one of these factors may compromise the other factors. For example, improving completeness of an analysis may seriously impair performance. In this paper, we present an analysis model and a framework that enables reducing analysis overhead at runtime through adaptive instrumentation of the base program. Our approach targets analyses implemented with code instrumentation techniques on the Java platform. Overhead reduction is achieved by removing instrumentation from code locations that are considered unimportant for the analysis results, thereby avoiding execution of analysis code for those locations. For some analyses, our approach preserves result accuracy and completeness. For other analyses, accuracy and completeness may be traded for a major performance improvement. In this paper, we explore accuracy, completeness, and performance of our approach with two concrete analyses as case studies.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"18 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2013-10-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"114202699","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Do computer programs have to be as dumb as they are?: input-centric dynamic program optimizations","authors":"Xipeng Shen","doi":"10.1145/2542142.2542170","DOIUrl":"https://doi.org/10.1145/2542142.2542170","url":null,"abstract":"Looking around this world, we see that a fledgling can fly faster and faster, a pupil can calculate quicker and quicker, and a graduate student can write papers better and better. But since the birth of computers, it has been the case that after the release of a software package, the one millionth run of the program is typically not a bit better than its first-time run. Do programs have to be this dumb? In this talk, I will discuss the barriers that cause such dumbness, our efforts in creating a more intelligent paradigm, and some open challenges that you may be able to help address.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"40 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2013-10-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131439371","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Some new approaches to partial inlining","authors":"B. Alpern, A. Cocchi, D. Grove","doi":"10.1145/2414740.2414749","DOIUrl":"https://doi.org/10.1145/2414740.2414749","url":null,"abstract":"This paper proposes two novel techniques for partial inlining. Context-driven partial inlining uses information available to the compiler at a call site to prune the callee prior to assessing whether the (pruned) body of the callee should be inlined. Guarded partial inlining seeks to inline the frequently taken fast path through the callee along with a test and a call to the original method to handle those instances where the fast path is not taken.\u0000 A fragile implementation of guarded partial inlining is described. An example, very loosely based on a simplified web server, is fabricated. Experimental evidence establishes the superiority of partial inlining over no inlining and over complete inlining on this contrived example. We show that these approaches to partial inlining are applicable in situations where previous approaches are not.\u0000 Potential effects of the widespread availability of partial inlining on software development are considered.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"26 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130506227","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Bypassing portability pitfalls of high-level low-level programming","authors":"Yi Lin, S. Blackburn","doi":"10.1145/2414740.2414746","DOIUrl":"https://doi.org/10.1145/2414740.2414746","url":null,"abstract":"Program portability is an important software engineering consideration. However, when high-level languages are extended to effectively implement system projects for software engineering gain and safety, portability is compromised--high-level code for low-level programming cannot execute on a stock runtime, and, conversely, a runtime with special support implemented will not be portable across different platforms.\u0000 We explore the portability pitfall of high-level low-level programming in the context of virtual machine implementation tasks. Our approach is designing a restricted high-level language called RJava, with a flexible restriction model and effective low-level extensions, which is suitable for different scopes of virtual machine implementation, and also suitable for a low-level language bypass for improved portability. Apart from designing such a language, another major outcome from this work is clearing up and sharpening the philosophy around language restriction in virtual machine design. In combination, our approach to solving portability pitfalls with RJava favors virtual machine design and implementation in terms of portability and robustness.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"13 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115803840","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Stephen Kell, Danilo Ansaloni, Walter Binder, L. Marek
{"title":"The JVM is not observable enough (and what to do about it)","authors":"Stephen Kell, Danilo Ansaloni, Walter Binder, L. Marek","doi":"10.1145/2414740.2414747","DOIUrl":"https://doi.org/10.1145/2414740.2414747","url":null,"abstract":"Bytecode instrumentation is a preferred technique for building profiling, debugging and monitoring tools targeting the Java Virtual Machine (JVM), yet is fundamentally dangerous. We illustrate its dangers with several examples gathered while building the DiSL instrumentation framework. We argue that no Java platform mechanism provides simultaneously adequate performance, reliability and expressiveness, but that this weakness is fixable. To elaborate, we contrast internal with external observation, and sketch some approaches and requirements for a hybrid mechanism.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"28 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126368779","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"The efficient handling of guards in the design of RPython's tracing JIT","authors":"David Schneider, Carl Friedrich Bolz-Tereick","doi":"10.1145/2414740.2414743","DOIUrl":"https://doi.org/10.1145/2414740.2414743","url":null,"abstract":"Tracing just-in-time (JIT) compilers record linear control flow paths, inserting operations called guards at points of possible divergence. These operations occur frequently in generated traces and therefore it is important to design and implement them carefully to find the right trade-off between deoptimization, memory overhead, and (partly) execution speed. In this paper, we perform an empirical analysis of runtime properties of guards. This is used to guide the design of guards in the RPython tracing JIT.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"71 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126250746","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"S-RVM: a secure design for a high-performance java virtual machine","authors":"Y. Yarom, K. Falkner, David S. Munro","doi":"10.1145/2414740.2414745","DOIUrl":"https://doi.org/10.1145/2414740.2414745","url":null,"abstract":"Reference protection mechanisms, which control the propagation of references, are commonly used to isolate and to provide protection for components that execute within a shared runtime. These mechanisms often incur an overhead for maintaining the isolation or introduce inefficiencies in the communication between the components.\u0000 This paper proposes a novel approach for component isolation that avoids runtime overheads by controlling references at compile time. We use the proposed approach to build S-RVM, a Java Virtual Machine based on JikesRVM, which enhances JikesRVM's security by isolating the VM from the application. Our experiments show that on the average S-RVM incurs no performance overhead when executing optimised code.","PeriodicalId":367935,"journal":{"name":"Virtual Machines and Intermediate Languages for Emerging Modularization Mechanisms","volume":"1 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-10-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"130775741","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}