Hi!

Today I noticed that openjdk's current sun.misc.Unsafe implementation
declares unpark with an Object parameter, instead of Thread.  This makes
some problems within cacao, as I switched to the Unsafe of openjdk (for
the openjdk library integration).

I'd like to commit the following patch which does not change anything
for GNU Classpath, but it may break some VMs, as it changes the VM
interface.

Which VMs would be affected?  Would it be a big problem to change it?

- twisti

---

Index: vm/reference/sun/misc/Unsafe.java
===================================================================
RCS file: /cvsroot/classpath/classpath/vm/reference/sun/misc/Unsafe.java,v
retrieving revision 1.2
diff -u -3 -p -r1.2 Unsafe.java
--- vm/reference/sun/misc/Unsafe.java   16 Jun 2006 18:28:45 -0000      1.2
+++ vm/reference/sun/misc/Unsafe.java   3 Jul 2007 19:45:39 -0000
@@ -305,7 +305,7 @@ public class Unsafe
    *
    * @param thread the thread to unblock.
    */
-  public native void unpark(Thread thread);
+  public native void unpark(Object thread);
 
   /**
    * Blocks the thread until a matching 



Reply via email to