summaryrefslogtreecommitdiff
path: root/libmudflap/mf-hooks3.c
diff options
context:
space:
mode:
authorfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-21 18:50:14 +0000
committerfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-21 18:50:14 +0000
commitce43fe1e86a6bd04e113d78f3988c79517142046 (patch)
tree341d1ca74728c7eb4882fe3637e08ccf81c3279a /libmudflap/mf-hooks3.c
parentd86eb5b2499a174d88ca3798a1088efd14b7b423 (diff)
downloadgcc-ce43fe1e86a6bd04e113d78f3988c79517142046.tar.gz
2004-07-21 Frank Ch. Eigler <fche@redhat.com>
* mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling. (__mfu_usage): Include (C) 2004. * mf-hooks3.c (__mf_find_threadinfo): Don't call tracing functions here. Include a comment explaining why. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85014 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap/mf-hooks3.c')
-rw-r--r--libmudflap/mf-hooks3.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libmudflap/mf-hooks3.c b/libmudflap/mf-hooks3.c
index 00fb3728e36..b844ee5c2b5 100644
--- a/libmudflap/mf-hooks3.c
+++ b/libmudflap/mf-hooks3.c
@@ -172,6 +172,10 @@ __mf_allocate_blank_threadinfo (unsigned* idx)
making an early call into libmudflap. In these cases, create a new
entry. If not it's not the main thread, put it into reentrant
initial state.
+
+ NB: VERBOSE_TRACE type functions are not generally safe to call
+ from this context, since a new thread might just be "booting up",
+ making printf unsafe to call.
*/
static struct pthread_info*
__mf_find_threadinfo ()
@@ -225,7 +229,7 @@ __mf_find_threadinfo ()
/* NB: leave stack-related fields unset, to avoid
deallocation. */
main_thread_seen_p = 1;
- VERBOSE_TRACE ("identified self as main thread\n");
+ /* VERBOSE_TRACE ("identified self as main thread\n"); */
}
else
{
@@ -236,15 +240,17 @@ __mf_find_threadinfo ()
/* NB: leave stack-related fields unset, leaving pthread_create
to fill them in for user threads, leaving them empty for
other threads. */
- VERBOSE_TRACE ("identified self as new aux or user thread\n");
+ /* VERBOSE_TRACE ("identified self as new aux or user thread\n"); */
}
}
if (last != it)
{
+ /*
VERBOSE_TRACE ("found threadinfo for %u, slot %u\n",
(unsigned) it,
(unsigned) *hash);
+ */
last = it;
}