2005-09-08 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Sep 2005 13:06:24 +0000 (13:06 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Sep 2005 13:06:24 +0000 (13:06 +0000)
* java/net/URLClassLoader.java (addURLImpl): Synchronize on the
loader.
(toString): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104095 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/net/URLClassLoader.java

index a167ac4..3d05cf8 100644 (file)
@@ -1,5 +1,11 @@
 2005-09-08  Andrew Haley  <aph@redhat.com>
 
+       * java/net/URLClassLoader.java (addURLImpl): Synchronize on the
+       loader.
+       (toString): Likewise.
+
+2005-09-08  Andrew Haley  <aph@redhat.com>
+
        PR java/22084
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Bump IP by 1 if
        R/M field in instruction is 100.
index 5d78db6..9f7126d 100644 (file)
@@ -880,7 +880,7 @@ public class URLClassLoader extends SecureClassLoader
 
   private void addURLImpl(URL newUrl)
   {
-    synchronized (urlloaders)
+    synchronized (this)
       {
         if (newUrl == null)
           return; // Silently ignore...
@@ -1111,7 +1111,7 @@ public class URLClassLoader extends SecureClassLoader
    */
   public String toString()
   {
-    synchronized (urlloaders)
+    synchronized (this)
       {
        if (thisString == null)
          {