# HG changeset patch # User Adam Domurad # Date 1337703183 14400 # Node ID 203e1b4e5c2339604276f85904e84f101072d181 # Parent 4672053d61e089fb58f585ec3fcd1a4e33811df4 Removed synchronization on Boolean when shutting down. diff -r 4672053d61e0 -r 203e1b4e5c23 plugin/icedteanp/java/sun/applet/PluginStreamHandler.java --- a/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java Mon Apr 02 11:28:21 2012 -0400 +++ b/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java Tue May 22 12:13:03 2012 -0400 @@ -59,7 +59,7 @@ private JavaConsole console = new JavaConsole(); private PluginMessageConsumer consumer; - private Boolean shuttingDown = false; + private volatile boolean shuttingDown = false; public PluginStreamHandler(InputStream inputstream, OutputStream outputstream) @@ -322,9 +322,7 @@ PluginDebug.debug(" PIPE: appletviewer read: ", message); if (message == null || message.equals("shutdown")) { - synchronized (shuttingDown) { - shuttingDown = true; - } + shuttingDown = true; try { // Close input/output channels to plugin. pluginInputReader.close(); @@ -362,10 +360,8 @@ } catch (IOException e) { // if we are shutting down, ignore write failures as // pipe may have closed - synchronized (shuttingDown) { - if (!shuttingDown) { - e.printStackTrace(); - } + if (!shuttingDown) { + e.printStackTrace(); } // either ways, if the pipe is broken, there is nothing