Skip to content

HewlettPackard/openjdkquartz

Repository files navigation

openjdkquartz

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.

Requisites

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

Usage

  1. Compile Quartz, install the library (libnvmemul.so) to the machine's \usr\lib. Set-up the nvmemul device.
  2. copy the pmalloc to somewhere GCC will find it, i.e: cp <path_to_quartz>/src/lib/pmalloc.h /usr/include/
  3. Run ./openjdk8patcher.sh <jdk_source_will_be_in_this_dir> (after copying the script and DirectByteBufferFTM.java, unsafeFTM.cpp & UnsafeFTM.javato the same directory)
  4. build openjdk from source using its embedded readme.
  5. Test your jdk by compiling and running the two simple tests in the unitTests directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published