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

Christian Tornqvist christian.tornqvist at oracle.com
Mon Oct 10 11:43:29 UTC 2016


Hi Shafi,

Note that this bug is targeted for JDK 10, you need to wait with pushing
this until the repository for that release is open.

Thanks,
Christian

-----Original Message-----
From: hotspot-runtime-dev
[mailto:hotspot-runtime-dev-bounces at openjdk.java.net] On Behalf Of Shafi
Ahmad
Sent: Monday, October 10, 2016 3:25 AM
To: hotspot-runtime-dev at openjdk.java.net
Subject: [9] RFR for JDK-8155004: CrashOnOutOfMemoryError doesn't work for
OOM caused by inability to create threads'

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