HewlettPackard/openjdkquartz

Name: openjdkquartz

Owner: Hewlett Packard Enterprise

Description: null

Created: 2016-08-30 09:31:08.0

Updated: 2016-10-26 12:06:19.0

Pushed: 2016-10-26 12:06:18.0

Homepage: null

Size: 31

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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 /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.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.