RFR: 8178698: javax/sound/midi/Sequencer/MetaCallback.java failed with timeout [v3]

Alexander Zuev kizune at openjdk.org
Wed Nov 16 19:48:13 UTC 2022


On Wed, 16 Nov 2022 08:51:01 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> One of the issues is that the flags are updated in the "meta()" on one thread and checked on another thread.

I can make counter and boolean flag volatile but looking at the logic of the updates i do not think it is a problem since both counter and flag updates happens on the same thread and we do not access counter on another thread until the flag is changed.

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

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



More information about the client-libs-dev mailing list