Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8346323

The C2 compiler causes the code to get stuck in a infinite loop

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      A DESCRIPTION OF THE PROBLEM :
      We are encountering a strange issue where our application happens to seemingly at random get stuck in a infinite loop out of nowhere. It has proven to be inconsistent to reproduce but happens consistently enough where the application can crash in a couple minutes after stress testing.

      After attaching the Java debugger to the program, it magically is able to come back to life and continue the execution as normal. We ended up having to resort to gdb to locate the code that is responsible for the behavior. This pointed us to the unconditional jump at the address 0x00007fac06623dd1, which seems to not line up with the source code.

      REGRESSION : Last worked in version 21.0.5


      CUSTOMER SUBMITTED WORKAROUND :
      Setting the -XX:TieredStopAtLevel=1 flag no longer causes the program to get stuck in a infinite loop.

      FREQUENCY : always


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: