This is the mail archive of the java@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]

Re: debugging threads vs processes


>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:

Per> Thanks to everybody who responded!  I still have no idea why the
Per> server is crashing (possibly some weird interaction between
Per> Apache's use of threads and Java's use of threads?), but my
Per> confusion is now at a higher plane of enlightenment!

Jeff> Hmm... are you loading libgcj.so dynamically?  The GC may not
Jeff> track threads properly unless it is loaded at startup.

It might be worse than that.  boehm-gc overrides various pthread_*
functions so that it can keep track of what is going on.  Apache might
need to be recompiled so that it calls these functions.  At least, if
Apache uses threads and if it can create new threads that use libgcj
without notifying the GC.  This is all platform dependent.  Offhand I
don't know which platforms use overrides and which use other methods.

Tom


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