public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* 4.0 Patch: Fix bootstrap classloader deadlock
@ 2005-10-01  6:07 Bryce McKinlay
  0 siblings, 0 replies; only message in thread
From: Bryce McKinlay @ 2005-10-01  6:07 UTC (permalink / raw)
  To: java-patches

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

This is the first of several fixes to be backported to the 4.0 branch 
now that it has reopened. See here for a description of the patch: 
http://gcc.gnu.org/ml/java-patches/2005-q3/msg00412.html

I'm checking this in.

Bryce


[-- Attachment #2: libjava-bootclassloader.patch --]
[-- Type: text/x-patch, Size: 1572 bytes --]

2005-10-01  Bryce McKinlay  <mckinlay@redhat.com>

        * gnu/gcj/runtime/BootClassLoader.java (BootClassLoader): Pass
        `null' parent ClassLoader to parent constructor.
        * gnu/gcj/runtime/HelperClassLoader.java (HelperClassLoader): New
        constructor.

Index: gnu/gcj/runtime/HelperClassLoader.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/runtime/HelperClassLoader.java,v
retrieving revision 1.1
diff -u -r1.1 HelperClassLoader.java
--- gnu/gcj/runtime/HelperClassLoader.java	29 Mar 2005 22:54:04 -0000	1.1
+++ gnu/gcj/runtime/HelperClassLoader.java	10 Aug 2005 19:08:10 -0000
@@ -25,6 +25,11 @@
   {
     super(new URL[0]);
   }
+  
+  HelperClassLoader(ClassLoader parent)
+  {
+    super(new URL[0], parent);
+  }
 
   /**
    * This is a helper method that adds all the jar and zip files from
Index: gnu/gcj/runtime/BootClassLoader.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/runtime/BootClassLoader.java,v
retrieving revision 1.3
diff -u -r1.3 BootClassLoader.java
--- gnu/gcj/runtime/BootClassLoader.java	29 Mar 2005 21:47:03 -0000	1.3
+++ gnu/gcj/runtime/BootClassLoader.java	10 Aug 2005 19:08:10 -0000
@@ -23,6 +23,9 @@
 {
   BootClassLoader(String libdir)
   {
+    // The BootClassLoader is the top of the delegation chain. It has no
+    // parent.
+    super((ClassLoader) null);
     addDirectoriesFromProperty("java.endorsed.dirs");
     addDirectoriesFromProperty("gnu.gcj.runtime.endorsed.dirs");
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-01  6:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-01  6:07 4.0 Patch: Fix bootstrap classloader deadlock Bryce McKinlay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).