This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: Thread -vs- synchronized native
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 04 Jan 2002 13:48:49 -0700
- Subject: Patch: FYI: Thread -vs- synchronized native
- Reply-to: tromey at redhat dot com
I'm checking this in.
This removes a couple meaningless `synchronized' modifiers from
Thread.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/lang/Thread.java (stop): No longer synchronized.
(start): Likewise.
Index: java/lang/Thread.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/Thread.java,v
retrieving revision 1.20
diff -u -r1.20 Thread.java
--- java/lang/Thread.java 2001/10/02 22:49:59 1.20
+++ java/lang/Thread.java 2002/01/04 20:34:36
@@ -1,6 +1,6 @@
// Thread.java - Thread class.
-/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation
This file is part of libgcj.
@@ -193,7 +193,7 @@
public static native void sleep (long timeout, int nanos)
throws InterruptedException;
- public synchronized native void start ();
+ public native void start ();
public final void stop ()
{
@@ -202,7 +202,7 @@
stop (null);
}
- public final synchronized native void stop (Throwable e);
+ public final native void stop (Throwable e);
public final native void suspend ();
private final native void initialize_native ();