|
From: Carlo W. <li...@us...> - 2002-01-12 17:42:10
|
CVSROOT : /cvsroot/libcw
Module : src
Commit time: 2002-00-12 17:42:09 UTC
Modified files:
libcwd/debugmalloc.cc
Log message:
Now we copy the temporary TSD to the real one, we can savely
initialize libcwd while being called from pthread_setspecific.
Moreover, we MUST initialize it at this point, otherwise the
balance between continued_cf and dc::finish might be disturbed
(see internal_malloc() test for continued_debug_output).
---------------------- diff included ----------------------
Index: src/libcwd/debugmalloc.cc
diff -u src/libcwd/debugmalloc.cc:1.69 src/libcwd/debugmalloc.cc:1.70
--- src/libcwd/debugmalloc.cc:1.69 Tue Jan 8 10:14:37 2002
+++ src/libcwd/debugmalloc.cc Sat Jan 12 09:41:59 2002
@@ -1,4 +1,4 @@
-// $Header: /cvsroot/l/li/libcw/src/libcwd/debugmalloc.cc,v 1.69 2002/01/08 18:14:37 libcw Exp $
+// $Header: /cvsroot/l/li/libcw/src/libcwd/debugmalloc.cc,v 1.70 2002/01/12 17:41:59 libcw Exp $
//
// Copyright (C) 2000 - 2001, by
//
@@ -1492,10 +1492,6 @@
_private_::set_alloc_checking_on(LIBCWD_TSD);
}
if (1
-#ifdef LIBCWD_THREAD_SAFE
- // Don't initialize libcwd while having only a 'temporal' __libcwd_tsd!
- && ::libcw::debug::_private_::thread_specific_data_tct< ::libcw::debug::_private_::TSD_st>::initialized()
-#endif
#ifdef __GLIBCPP__
// "ios_base" is always initialized for libstdc++ version 2.
&& !_private_::WST_ios_base_initialized && !_private_::inside_ios_base_Init_Init()
----------------------- End of diff -----------------------
|