diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-09 13:06:24 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-09 13:06:24 +0000 |
commit | 55607188afc13f8ebc29942e99a212758cf07693 (patch) | |
tree | d76034dd07d8dc54f6d2424b2fa3c647035b4120 /libjava | |
parent | 671ec72e2703ac9c72c204ba6c4939eeea83d370 (diff) | |
download | gcc-55607188afc13f8ebc29942e99a212758cf07693.tar.gz |
2005-09-08 Andrew Haley <aph@redhat.com>
* 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
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/java/net/URLClassLoader.java | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index a167ac4c8c6..3d05cf8f30f 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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. diff --git a/libjava/java/net/URLClassLoader.java b/libjava/java/net/URLClassLoader.java index 5d78db6606c..9f7126dc540 100644 --- a/libjava/java/net/URLClassLoader.java +++ b/libjava/java/net/URLClassLoader.java @@ -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) { |