In order to test NG2C you first need to download and prepare the OpenJDK JVM build. Instructions regarding how to download and build the OpenJDK can be found at: http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html
Then you need to replace the HotSpot source with the one in this repository. For example:
git clone https://github.com/paper-87/ng2c.git hotspot-ng2c
mv /path-to-openjdk/jdk8/hotspot /path-to-openjdk/jdk8/hotspot-bak
ln -s hotspot-ng2c /path-to-openjdk/jdk8/hotspot
Finally, build the OpenJDK JVM and the resulting JVM has NG2C incorporated. Remember that NG2C only works if G1 is enabled.