From 7065cf26cfe0c31fff008a7f0f68d2e7c3454e1f Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Fri, 5 Jan 2001 23:34:19 +0000 Subject: * test/java.io/PipedReaderWriterTest.java: Use Thread.sleep() to implement delay, not System.gc(). * test/java.io/PipedStreamTest.java: Ditto. * java/io/PipedReader: Synchronize on "lock" instead of this. --- test/java.io/PipedStreamTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/java.io/PipedStreamTest.java') diff --git a/test/java.io/PipedStreamTest.java b/test/java.io/PipedStreamTest.java index 0ef3f05bc..796b35846 100644 --- a/test/java.io/PipedStreamTest.java +++ b/test/java.io/PipedStreamTest.java @@ -25,7 +25,7 @@ public class PipedStreamTest { public static void -main(String[] argv) +main(String[] argv) throws InterruptedException { // Set up a reasonable buffer size for this test if one is not already // specified @@ -56,7 +56,7 @@ main(String[] argv) { System.out.print(new String(buf, 0, bytes_read)); System.out.flush(); - System.gc(); // A short delay + Thread.sleep(10); // A short delay total_read += bytes_read; } -- cgit v1.2.1