This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: Fix bug 27170
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Thu, 20 Apr 2006 19:54:42 -0400
- Subject: 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>