A DESCRIPTION OF THE REQUEST :
This is a little enhancement to the error message in java/net/ on both windows and linux. The current out of memory error message is "heap allocation failed ", it makes some user confusing whether the OOM is in java heap or native.
Please look at http://mail.openjdk.java.net/pipermail/net-dev/2012-July/004516.html for the discussion.
The enhancement changes the error message from "heap allocation failed" to "Native heap allocation failed" , so it is clear the OOM is from native code.