On Tue, 2013-01-29 at 12:49 +0100, Pierre Joye wrote: > > That is true. Many modern compilers and environments provide better > > support for thread local storages .... > > Exactly, or more exactly CRTs (libc, crt and the likes)>
That's what I called "environment" - some of these things depend on kernels, some on libraries, ... anyway - irrelevant terminology :-p > > What I see is that TSRM brings a lot of complexity and introduces risk > > of bugs in there as many developers don't think about. Most of us are > > focused on the nice and simple world of single-threaded computing. And I > > assume that we can still find quite some threading bugs when going on a > > hunt for them ... so besides of pure executable performance there is > > also the cost of developer power for (proper) maintenance ... > > The amount of bugs is rather low. We do test in TS and TS on a daily > basis. The last extension causing more critical issues was mysql, we > have discussed these bugs for a long time. There were mysqli threading bugs, the last one of those actually had been engine bugs which affected other extensions, too. See i.e. http://news.php.net/php.internals/59353 Such bugs identified a year after the release of 5.4 gives me quite a good indication of the little actual testing being done overall. johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php