Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2001 14:44:43 +0200
From:      Anton Berezin <tobez@tobez.org>
To:        Mark Murray <mark@grondar.za>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc/defaults make.conf
Message-ID:  <20010527144443.A72056@heechee.tobez.org>
In-Reply-To: <200105271203.f4RC3B635492@gratis.grondar.za>; from mark@grondar.za on Sun, May 27, 2001 at 02:05:16PM %2B0200
References:  <20010527133129.A71178@heechee.tobez.org> <200105271203.f4RC3B635492@gratis.grondar.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 27, 2001 at 02:05:16PM +0200, Mark Murray wrote:
> > >   IMHO, experimental options shouldn't even be available on the stable
> > >   branch.
> > 
> > ..especially considering that PERL_THREADED does much more harmful
> > things to 5.005_03 than to 5.6.0...
> 
> What say folks that I just remove it?

Hmm.  That's what README.threads from 5.6.1 distribution says:

	NOTE: This documentation describes the style of threading that was
	available in 5.005.  Perl v5.6 also has the early beginnings of
	interpreter-based threads support (which is what will be enabled by
	default when you simply ask for -Dusethreads).  However, be advised
	that interpreter threads cannot as yet be created from the Perl level
	yet.  If you're looking to create threads from within Perl, chances
	are you _don't_ want interpreter threads, but want the older support
	for threads described below, enabled with:

		sh Configure -Dusethreads -Duse5005threads

	The rest of this document only applies to the use5005threads style of
	threads.
	----------------------------------------------------------------------

	Support for threading is still in the highly experimental stages.  There
	are known race conditions that show up under high contention on SMP
	machines.  Internal implementation is still subject to changes.
	It is not recommended for production use at this time.

	----------------------------------------------------------------------

In FreeBSD, when PERL_THREADED=true, both 5.005_03 in -stable and 5.6.0
in -current are built using -Dusethreads configure parameter.  This
means different things, however: in 5.005_03 -Dusethreads is equivalent
to -Dusethreads -Duse5005threads in 5.6.0 (and 5.6.1).

So we have `threading is the highly experimental stages' in -stable (or,
how someone on perl5-porters mailing list has put it, `a 5.005 threads
fiasco'), and in -current we have `the early beginnings of
interpreter-based threads support'.

To me, this implies, that to remove the support for perl threads would
be a safe and wise decision.  Those wishing to shoot themselves in the
foot can build their custom perl from sources any time - to my
knowledge, this does not require any patches at all:

   $ tar xzf perl.something.tgz
   $ sh Configure -des -Dusethreads -Duse5005threads
   $ make && make test && make install

So I would say, go for it!  :-)

%Anton.
-- 
May the tuna salad be with you.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010527144443.A72056>