From f6d20f42a4349f7f488a0d154faddbf349ed7421 Mon Sep 17 00:00:00 2001 From: Christopher Batey Date: Tue, 27 Nov 2018 08:38:12 +0000 Subject: [PATCH] Add Graal recommendation to contributing guide --- CONTRIBUTING.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b6691cc63b..419dbe42b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -152,6 +152,13 @@ multi-jvm:testOnly akka.cluster.SunnyWeather Akka has not been compiled or tested with `-optimize` Scala compiler flag. (In sbt, you can specify compiler options in the `scalacOptions` key.) Strange behavior has been reported by users that have tried it. +### Compiling with Graal JIT + +Akka, like most Scala projects, compiles faster with the Graal JIT enabled. The easiest way to use it for compiling Akka is to: + +* Use a JDK > 10 +* Use the following JVM options for SBT e.g. by adding them to the `SBT_OPTS` environment variable: `-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler` + ## The `validatePullRequest` task The Akka build includes a special task called `validatePullRequest` which investigates the changes made as well as dirty