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

Some sound tests rarely hangs because of incorrect synchronization

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b124
    • CPU:
      generic
    • OS:
      generic

      Description

      I just found one of the reason why some of our tests hangs. Example of the test:
      closed/javax/sound/sampled/Clip/bug5070081.java

      The problem is that the tests uses this pattern:
      clip.start();
      while(clip.isRunning());

      The status running or not is updated on a different thread, but our clip implementations lack of synchronization of getters and the hotspot inline such methods to while(true).

        Attachments

          Activity

            People

            • Assignee:
              serb Sergey Bylokhov
              Reporter:
              serb Sergey Bylokhov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: