# HG changeset patch # User Adam Domurad # Date 1337703070 14400 # Node ID 886414736595fa099941893711062978e512ab22 # Parent 08121ef055a2de80d3f6def2269f15e2911560a7 Removed uses of synchronization on Boolean object. diff -r 08121ef055a2 -r 886414736595 plugin/icedteanp/java/sun/applet/PluginStreamHandler.java --- a/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java Tue May 22 17:37:25 2012 +0200 +++ b/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java Tue May 22 12:11:10 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