Merge pull request #25989 from chbatey/graal

Add Graal recommendation to contributing guide
This commit is contained in:
Patrik Nordwall 2018-12-05 13:52:48 +01:00 committed by GitHub
commit bca269d684
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.) 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. 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 `validatePullRequest` task
The Akka build includes a special task called `validatePullRequest` which investigates the changes made as well as dirty The Akka build includes a special task called `validatePullRequest` which investigates the changes made as well as dirty