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

Strange behavior of Client VM (Unexpected value change on the specific situation)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: hs10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b59
    • Introduced In Version:
      6
    • Resolved In Build:
      b08
    • CPU:
      generic, x86
    • OS:
      windows_xp

      Backports

        Description

        Please run the attached test programs(Test1.java) using Client VM or take a look at
        the attached test result(result.txt). You'll notice that a variable(pre)'s value
        is unexpectedly changed from true to false (at line 34 in result.txt) in the middle
        of execution.
        Based on circumstantial evidence, we think there is a bug in client VM.

        Additional info:
          - This bug is reproducible only with Client VM. Not reproducible with -server nor -Xint.
          - This bug is not always reproducible. Please run the test program several times if you
            don't see the symptom.
          - Interestingly, this bug becomes non-reproducible
              * if you comment out the assignment expression to a variable(brk) at line 17
                or the "for" loop at line 27
              - or -
              * if you rearrange the order of two variable definitions at line 4 and 5.
                    boolean brk = true;
                    boolean pre = false;
        According to the original bug reporter, this can be reproducible with a break statement with a label as well as a continue statement.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  never Tom Rodriguez
                  Reporter:
                  peytoia Yuka Kamiya (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: