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

C2: add assert(false) before malformed control flow bailout in compile.cpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 25
    • hotspot

      C2: add assert(false) before malformed control flow bailout

      In JDK-8303951, an assert(false, ...) statement was added before compilation bailouts that indicate a product bug, to catch these cases when testing in debug mode.

      One missing case of this is found in compile.cpp:

      https://github.com/openjdk/jdk/blob/9697e5bf74bc7d7fbdf76eed42b8de3c05d69acc/src/hotspot/share/opto/compile.cpp#L4083

      Originally encountered in JDK-8362117, where I thought that was a regression introduced in a later version but actually affects JDK 8 -- but it just silently bailed out.

            dskantz Daniel Skantz
            dskantz Daniel Skantz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: