summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-09 13:06:24 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-09 13:06:24 +0000
commit55607188afc13f8ebc29942e99a212758cf07693 (patch)
treed76034dd07d8dc54f6d2424b2fa3c647035b4120 /libjava
parent671ec72e2703ac9c72c204ba6c4939eeea83d370 (diff)
downloadgcc-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/ChangeLog6
-rw-r--r--libjava/java/net/URLClassLoader.java4
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)
{