--- old/src/java.desktop/share/classes/com/sun/media/sound/RealTimeSequencer.java 2016-05-17 17:13:14.000000000 +0300 +++ new/src/java.desktop/share/classes/com/sun/media/sound/RealTimeSequencer.java 2016-05-17 17:13:14.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -106,7 +106,7 @@ /** * True if the sequence is running. */ - private boolean running = false; + private volatile boolean running; /** the thread for pushing out the MIDI messages */ @@ -116,7 +116,7 @@ /** * True if we are recording */ - private boolean recording = false; + private volatile boolean recording; /**