r227487 breaks C++ programs that use __isthreaded

John Baldwin jhb at freebsd.org
Mon Dec 12 18:50:13 UTC 2011


On Thursday, December 01, 2011 4:23:11 pm David Schultz wrote:
> On Thu, Dec 01, 2011, George Liaskos wrote:
> > Hello
> > 
> > One example is Google's tcmalloc [1], is this behaviour intended?
> > 
> > [1] http://code.google.com/p/google-
perftools/source/browse/trunk/src/maybe_threads.cc
> 
> This code uses an unportable workaround for a bug that I believe
> was fixed in r227999.  Using internal names starting with a double
> underscore isn't supported.

I still think 227999 is wrong and would prefer that once actually worked,
but that has fallout for libstdc++.  libc has an internal _once() that
always works.

-- 
John Baldwin


More information about the freebsd-current mailing list