This repository contains a patch script designed to allow java programmers to create an open-jdk-8 variant which allows memory allocation over the Quartz performance emulator. It is assumed Quartz is compiled and installed before running the script.
Some version of open-jdk-8 source code. Can be obtained from the project's mercurial repository. Easiest way I found (once mercury is installed), is to run the following commands: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u <jdk_source_will_be_in_this_dir> cd <jdk_source_will_be_in_this_dir> bash ./get_source.sh
- Compile Quartz, install the library (libnvmemul.so) to the machine's \usr\lib. Set-up the nvmemul device.
- copy the pmalloc to somewhere GCC will find it, i.e: cp <path_to_quartz>/src/lib/pmalloc.h /usr/include/
- Run
./openjdk8patcher.sh <jdk_source_will_be_in_this_dir>(after copying the script and DirectByteBufferFTM.java, unsafeFTM.cpp & UnsafeFTM.javato the same directory) - build openjdk from source using its embedded readme.
- Test your jdk by compiling and running the two simple tests in the unitTests directory.