How / where to get a Perl that has threads?

Anton Berezin tobez at tobez.org
Sun Mar 1 07:39:02 PST 2009


On Sun, Mar 01, 2009 at 02:02:27PM +0200, Oren Maurer wrote:
> Is there a reason for not having threaded Perl as the default?
> Is it matter of History (compatibility with past code)?
> Or internal FreeBSD reason (memory)?

> I have seen other OS's - that do use threaded Perl as default (Linux,
> MSWin32).

The biggest reason is that FreeBSD has a rather small main thread stack
size (2 MB for 32-bit architectures and 4 MB for 64-bit architectures),
and this parameter cannot be changed without recompiling the system threads
library.  Or at least that used to be the case last time I checked, about a
year ago.

So a given Perl program that does NOT use threads will have much smaller
stack when executed in a perl compiled with threads support.  Some large
applications (amavisd-new, IIRC) had problems with that.

Cheers,
\Anton.
-- 
There is no beauty in entropy. -- Eliezer Yudkowsky


More information about the freebsd-perl mailing list