Static Java, GraalVM Native and OpenJDK

 /  EN

Java is specified as an extensible, dynamic language with an extensible, dynamic runtime. However, GraalVM Native has demonstrated that it is possible to deliver many Java apps as static deployments, with most application and runtime choices pre-configured at build time. This shift in behavior enables performance trade-offs that suit current trends in containerization, most notably the ultra-fast startup and low memory footprint demanded micro-service and serverless deployments. It also risks opening up a gap between language and runtime specification vs implementation, with build-time choices forcing runtime and application code down different execution paths in static vs dynamic deployments.

This talk will explain why such divergence arises, both of necessity and by virtue of how the JDK runtime and some Java apps are currently implemented. To ground this problem in experience Andrew will describe how GraalVM Native implements a static model that diverges from dynamic behavior while still managing to retain compatibility for most programs. Speaker will provide examples to highlight some of the potential risks this entails, while also explaining how GraalVM Native manages to achieve fast startup and low footprint.

Andrew will move on to discuss the OpenJDK project Leyden, whose most important goal is to scope, minimize and sanction by specification legitimate opportunities for divergence between static and dynamic deployments of the same app. He will briefly introduce the different project outputs needed to achieve this goal: an extended Java language and runtime specification, a comprehensive validation suite, and fully functional and, perhaps, performant reference implementation. In conclusion, there will be reporting on some preliminary experiments Red Hat has undertaken as a step toward implementing the last of these three outputs.


Speakers

Andrew Dinn
Andrew Dinn
Red Hat

Andrew Dinn a Red Hat Distinguished Engineer in Red Hat's JDK Team. He is an OpenJDK Project Reviewer and a member of the GraalVM project. He also leads the JBoss project Byteman. Andrew has worked as a professional software developer and academic researcher for nearly 4 decades. His main interest is compilers, language virtual machines, runtimes, and tooling.