On Wed, 2007-07-04 at 15:41 +0200, Mark Wielaard wrote:
> Hi Christian,
>
> On Tue, 2007-07-03 at 21:51 +0200, Christian Thalinger wrote:
> > 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?
>
> If it improves compatibility I say go for it!
> But please do add an entry about it in the NEWS file when you do.
> This change is fairly tiny and safe imho.
Sorry for the (really) long delay, but here is the commit:
2007-07-23 Christian Thalinger <[EMAIL PROTECTED]>
* vm/reference/sun/misc/Unsafe.java (unpark): Changed signature to
be compatible with OpenJDK.
- 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 23 Jul 2007 17:07:21 -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);
/**