diff options
author | Tom Tromey <tromey@redhat.com> | 2001-10-23 16:18:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-10-23 16:18:44 +0000 |
commit | 28a8851e654560d565e7270812ea1b2e1c33b14d (patch) | |
tree | 3a7e2c39b073bab86f933648c08ef8e544b727c8 /libjava/java/io | |
parent | 635559ab2e63321fc138894332e8dc4704aea20f (diff) | |
download | gcc-28a8851e654560d565e7270812ea1b2e1c33b14d.zip gcc-28a8851e654560d565e7270812ea1b2e1c33b14d.tar.gz gcc-28a8851e654560d565e7270812ea1b2e1c33b14d.tar.bz2 |
* java/io/BufferedWriter.java (localFlush): Don't synchronize.
From-SVN: r46435
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/BufferedWriter.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libjava/java/io/BufferedWriter.java b/libjava/java/io/BufferedWriter.java index 371c496..732f7bb 100644 --- a/libjava/java/io/BufferedWriter.java +++ b/libjava/java/io/BufferedWriter.java @@ -216,15 +216,13 @@ public class BufferedWriter extends Writer } } + // This should only be called with the lock held. private final void localFlush () throws IOException { if (count > 0) { - synchronized (lock) - { - out.write(buffer, 0, count); - count = 0; - } + out.write(buffer, 0, count); + count = 0; } } |