diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-23 16:18:44 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-23 16:18:44 +0000 |
commit | 753a360f09c905c575eb1a106827a2e74c2e6bdc (patch) | |
tree | 3a7e2c39b073bab86f933648c08ef8e544b727c8 /libjava/java/io | |
parent | 33dbe4d16845bd7f16fb4cc7951ce85e16da91f3 (diff) | |
download | ppe42-gcc-753a360f09c905c575eb1a106827a2e74c2e6bdc.tar.gz ppe42-gcc-753a360f09c905c575eb1a106827a2e74c2e6bdc.zip |
* java/io/BufferedWriter.java (localFlush): Don't synchronize.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46435 138bc75d-0d04-0410-961f-82ee72b054a4
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 371c496c7c3..732f7bb4718 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; } } |