Mandrel
Mandrel 21.2.0.1-Final is a downstream distribution of the GraalVM community edition 21.2.0.
Mandrel's main goal is to provide a native-image
release specifically to support Quarkus.
The aim is to align the native-image
capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.
How Does Mandrel Differ From Graal
Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.
Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.
Prerequisites
Mandrel's native-image
depends on the following packages:
- glibc-devel
- zlib-devel
- freetype-devel
- gcc
On Fedora/CentOS/RHEL they can be installed with:
dnf install glibc-devel zlib-devel gcc freetype-devel libstdc++-static
Note the package might be called glibc-static
instead of libstdc++-static
.
On Ubuntu-like systems with:
apt install g++ zlib1g-dev libfreetype6-dev
Quick start
$ tar -xf mandrel-java11-linux-amd64-21.2.0.1-Final.tar.gz
$ export JAVA_HOME="$( pwd )/mandrel-java11-21.2.0.1-Final"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J https://code.quarkus.io/d?e=io.quarkus:quarkus-resteasy
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner
Quarkus builder image
The Quarkus builder image for this release is still being prepared, please try again later.
Changelog
Backports
- #282 - Backport "Enables parsing units for maxsize, fixes units for delay in JfrManager.java"
- #281 - Backport reflection registration fix for JFR eventHandler fields
For a complete list of changes please visit mandrel-21.2.0.0-Final...mandrel-21.2.0.1-Final
Mandrel 21.2.0.1-Final
OpenJDK used: 11.0.12+7