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

DirectAudio in JavaSound may hang and leak

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b23
    • CPU:
      generic
    • OS:
      generic

      Description

      The fix for JDK-8168751 changed the timings in DirectAudioDevice, so the old test ClipCloseLoss.java now fails(2 or 3 time per 50 invocations). The reason is that DirectAudioDevice.run() method have incorrect wait logic, which may hang after attepmt to close it.
      Run(100 times) the test below to reproduce the bug:
      javax/sound/sampled/Clip/ClipCloseLoss.java

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: