mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
URLClassLoader.java (addURLImpl): Synchronize on the loader.
2005-09-08 Andrew Haley <aph@redhat.com> * java/net/URLClassLoader.java (addURLImpl): Synchronize on the loader. (toString): Likewise. From-SVN: r104095
This commit is contained in:
committed by
Andrew Haley
parent
ddef717308
commit
13d7d8745b
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user