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

Code Builder: Problems with handling complex control flow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:

      Description

      Depending on JVM state at goto_(), the following sequence can hits the bug in the code builder:
        builder.goto_("l1");
        builder.label("l2");

      goto_() doesn't wipe the state, but the state at l2 doesn't relate to the state when jumping to l1. It usually manifests as stack depth or type mismatches when trying to merge the states in builder.label().

      Proper control flow support is needed for LF intrinsics (JDK-8183130).

        Attachments

          Activity

            People

            Assignee:
            mcimadamore Maurizio Cimadamore
            Reporter:
            vlivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: