Skip to content

OpenJDK 21 with CRaC support. This repository hosts CRaC patches from https://github.com/openjdk/crac backported to jdk21u.

License

Notifications You must be signed in to change notification settings

canonical/openjdk-21-crac

Repository files navigation

CRaC JDK

Build

CRaC JDK have extended build procedure.

  1. Build JDK as usual
bash configure
make images
mv build/linux-x86_64-server-release/images/jdk/ .
  1. Download a build of modified CRIU
  2. Extract and copy criu binary over a same named file in the JDK
cp criu-dist/sbin/criu jdk/lib/criu

Grant permissions to allow regular user to run it

sudo chown root:root jdk/lib/criu
sudo chmod u+s jdk/lib/criu

JDK

For build instructions please see the online documentation, or either of these files: