This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: TestLeak crashes due to GC issues
- From: Ulrich Weigand <Ulrich dot Weigand at de dot ibm dot com>
- To: "Boehm, Hans" <hans dot boehm at hp dot com>
- Cc: java at gcc dot gnu dot org, mckinlay at redhat dot com
- Date: Wed, 1 Dec 2004 14:48:54 +0100
- Subject: RE: TestLeak crashes due to GC issues
"Boehm, Hans" <hans.boehm@hp.com> wrote on 11/30/2004 11:34:59 PM:
> I assume this is distinct from the test failures associated with Bryce's
> patch?
Hmm, it looks like it is the same problem after all ...
> It's probably worth stepping through thread creation once, and making
> sure that GC_pthread_create is called as expected.
... because pthread_create is no longer intercepted.
This is directly caused by Bryce's patch, specifically the snippet:
* include/gc.h: Include config.h, not gc_config.h.
While there still is a boehm-gc/include/config.h being generated
(which contains the proper definitions), when gc.h is included
from libjava files during the libjava build process, the line
#include <config.h>
will resolve to libjava/include/config.h, not boehm-gc/include/config.h.
Thus, when building posix-thread.cc, GC_LINUX_THREADS is not defined,
and therefore pthread_create is not intercepted.
I'll update the tree now that Bryce's patch has been reverted
and verify that the problem is fixed now.
Thanks,
Ulrich