[9] RFR for JDK-8155004: CrashOnOutOfMemoryError doesn't work for OOM caused by inability to create threads'

Shafi Ahmad shafi.s.ahmad at oracle.com
Mon Oct 10 07:24:37 UTC 2016


Hi All,

Please review the simple change for the fix of bug '' JDK-8155004: CrashOnOutOfMemoryError doesn't work for OOM caused by inability to create threads'.

Summary: 
In the current implementation there are few scenarios where we are not obeying the jvm option -XX:+CrashOnOutOfMemoryError.
While I was analysis this issue I found there are two jvm state where OOM can happen:
 1.  OOM during VM initialization - as per our internal discussion for this case it is not worth for dumping core file, so this is left as it is.
 2.  OOM once VM is initialized - For this scenario most of the place code is already added but few place corresponding code changes are missing so this change covers it.

Webrev link: http://cr.openjdk.java.net/~shshahma/8155004/webrev.00/
Jdk9 bug: https://bugs.openjdk.java.net/browse/JDK-8155004

Testing: jprt and jtreg (on Linux x86_64)

Regards,
Shafi


More information about the hotspot-runtime-dev mailing list