commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mauve patch


From: Archie Cobbs
Subject: Mauve patch
Date: Mon, 5 Apr 2004 22:30:34 -0500 (CDT)

Hi,

Is this the right place to send Mauve patches? If not please point me
(or the patch) in the right direction.

In JC, phantom references are enqueued on the next finalizer run
after the one that finalizes the object, and finalizer runs only
happen after a GC cycle, therefore the patch below is required to
make JC pass the test; ie, the test is being too strict.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

Index: gnu/testlet/java/lang/ref/PhantomReference/phantom.java
===================================================================
RCS file: 
/cvs/mauve/mauve/gnu/testlet/java/lang/ref/PhantomReference/phantom.java,v
retrieving revision 1.1
diff -u -r1.1 phantom.java
--- gnu/testlet/java/lang/ref/PhantomReference/phantom.java     27 Sep 2001 
15:44:09 -0000      1.1
+++ gnu/testlet/java/lang/ref/PhantomReference/phantom.java     6 Apr 2004 
03:28:19 -0000
@@ -70,6 +70,8 @@
 
     PhantomReference wr = try1 (q, harness);
     System.gc ();
+    Thread.yield();
+    System.gc ();
 
     Reference r = null;
     try




reply via email to

[Prev in Thread] Current Thread [Next in Thread]