Patch: FYI: Thread -vs- synchronized native

Tom Tromey tromey@redhat.com
Fri Jan 4 12:36:00 GMT 2002


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 ();



More information about the Java-patches mailing list