On m1 mac sometimes (in very rare instance) it takes a long time to get the 
sequencer so increasing timeout helps with that.
Also on m1 mac sequencer got notified about the first MetaMessage twice. The 
reason is unclear but watching for that fixes the problem. Also on Linux 
sometimes process hangs indefinitely without finishing hold by the 
com.sun.media.sound.MediaDispatcher. Closing the sequencer at the end of the 
test helps with that.

-------------

Commit messages:
 - Handle case when on m1 mac handler being called twice on the same message in 
the beginning of playback
 - 8178698: javax/sound/midi/Sequencer/MetaCallback.java failed with timeout

Changes: https://git.openjdk.org/jdk/pull/11157/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11157&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8178698
  Stats: 14 lines in 2 files changed: 9 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/11157.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11157/head:pull/11157

PR: https://git.openjdk.org/jdk/pull/11157

Reply via email to