This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: CNI from apache module
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Per Bothner <per at bothner dot com>
- Cc: Lars Andersen <lars at jatak dot com>, java at gcc dot gnu dot org
- Date: Tue, 19 Feb 2002 09:54:06 +1300
- Subject: Re: CNI from apache module
- References: <3C70D730.4000604@jatak.com> <3C7142F0.6050003@bothner.com>
Per Bothner wrote:
> There are some issues with threading. I experimented with both
> --with-mpm=prefork and --with-mpm-threaded. You'd like to use use
> 'threaded', both for performance and because you want all "servlets"
> to share a single JVM. However, then you may have to kludge various
> things. For example you need to make sure that gc.h is included so
> that the GC can be notified of thread changes. I tried #include <gc.h>
> in srclib/apr/pthread.h.
We could probibly (should) make JvAttachCurrentThread and
JvDetachCurrentThread do the neccessary thread registration and
de-registration with the collector. That way changes to apache itself
should be avoidable.
regards
Bryce.