C2 compiler hangs and eats memory in escape analysis

Vladimir Kozlov vladimir.kozlov at oracle.com
Thu Jan 22 17:45:56 UTC 2015

It is also https://bugs.openjdk.java.net/browse/JDK-8041984
Both bugs are fixed in jdk 8u40 too.

Fredrik, you can download early access 8u40 and try it:



On 1/22/15 6:41 AM, Aleksey Shipilev wrote:
> 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.

More information about the hotspot-compiler-dev mailing list