You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Chia-liang Kao <cl...@clkao.org> on 2005/02/26 15:36:34 UTC

javahl without threads

Hi,

I was trying to compile javahl, and noticed it doesn't compile because my apr is
not threaded.  Should the javahl have the #if APR_HAS_THREADS?  Or threaded-apr
is required, which should be written in README.

Cheers,
CLK



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: javahl without threads

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Saturday, February 26, 2005 11:47 PM +0800 Chia-liang Kao 
<cl...@clkao.org> wrote:

> On Sat, Feb 26, 2005 at 04:46:34PM +0100, Patrick Mayweg wrote:
>> a threaded apr should be used for javahl, because java itself is
>> multithreaded and I need to synchronize some operations.
>> I will add that to the README file. On which platform apr is not
>> threaded?
>
> FreeBSD that is.

Some background on this: FreeBSD 5.3 has a working threaded system.  Prior 
to that, the FreeBSD threading API is unusable: httpd 2.x built with 
threading MPMs would not serve pages reliably.

APR 1.0 and higher know that FreeBSD 5.3 is good and take advantage of 
threading automatically.  Note that the APR 0.9.x branch doesn't have the 
logic to be aware of FreeBSD 5.3's threading capabilities.

However, if you are using FreeBSD 5.3 and APR 0.9.x (as bundled with httpd 
2.0.53 or whatnot), you can pass --enable-threads to APR's configure if you 
wish to override APR's failsafes.

And, as Patrick says, javahl without threads is badness as Java always 
tries to emulate threads regardless of what the underlying OS does.

HTH.  -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: javahl without threads

Posted by Chia-liang Kao <cl...@clkao.org>.
On Sat, Feb 26, 2005 at 04:46:34PM +0100, Patrick Mayweg wrote:
> a threaded apr should be used for javahl, because java itself is 
> multithreaded and I need to synchronize some operations.
> I will add that to the README file. On which platform apr is not threaded?

FreeBSD that is.

Cheers,
CLK

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org