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

DirectAudio in JavaSound may hang and leak

XMLWordPrintable

    • b23
    • generic
    • generic

        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

              serb Sergey Bylokhov
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: