This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: Fix bug 27170


This is a variant on Anthony Green's patch to fix PR 27170, a deadlock in Boehm GC during dlopen(). Instead if calling GC_dlopen directly, this patch includes the gc.h header which will override dlopen.

I'm checking this in to HEAD and the 4.1 branch.

Bryce


2004-04-20  Bryce McKinlay  <mckinlay@redhat.com>

        PR libgcj/27170
        * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override
        dlopen(). From Anthony Green.

Index: gnu/gcj/runtime/natSharedLibLoader.cc
===================================================================
--- gnu/gcj/runtime/natSharedLibLoader.cc	(revision 113122)
+++ gnu/gcj/runtime/natSharedLibLoader.cc	(working copy)
@@ -10,6 +10,11 @@
 
 #include <config.h>
 
+// If we're using the Boehm GC, then we need this include to override dlopen.
+#ifdef HAVE_BOEHM_GC
+#include <gc.h>
+#endif /* HAVE_BOEHM_GC */
+
 #include <gcj/cni.h>
 #include <jvm.h>
 #include <execution.h>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]