C2 compiler hangs and eats memory in escape analysis

Aleksey Shipilev aleksey.shipilev at oracle.com
Thu Jan 22 14:41:46 UTC 2015


On 22.01.2015 17:36, Fredrik Tolf wrote:
> I have no idea thus far what actually triggers the problem, but I appear
> to have found a reliable (though complex, hard-to-communicate, and
> without any obvious way to reduce to an SSCCE) procedure for reproducing
> it. When it happens, both the C2 compiler threads hang, consuming 100%
> CPU each and very often (but not always) eating all my memory. I've been
> able to reproduce it on three distinct systems, and with both Oracle JRE
> 8u31 and the Debian-supplied OpenJDK-8 JRE, so it seems to be a bug in
> "stock" Hotspot rather than some local configuration issue. All the
> systems are running x86_64 Linux, but I doubt that is related to the
> problem.

I would suggest you to try building the latest JDK 9, or using the JDK 9
EA to see if this is fixed in already. Vladimir had fixed the issues
like these before, and here is the recent one:
 https://bugs.openjdk.java.net/browse/JDK-8066199

The bug, if any, would be easier to demonstrate with Timeline view in
Solaris Studio Performance Analyzer, like this:
 http://cr.openjdk.java.net/~shade/8066199/timeline.png

Thanks,
-Aleksey.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150122/89e46060/signature.asc>


More information about the hotspot-compiler-dev mailing list