From 75e99530c295f49d523ea30fee1cb6c5d3423870 Mon Sep 17 00:00:00 2001 From: Ivo Raisr Date: Wed, 31 May 2017 13:47:57 +0000 Subject: [PATCH] Ignore sim hint "no-nptl-pthread-stackcache" on Solaris and Mac OS X. Do not produce a warning message when it is given. n-i-bz git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16424 --- coregrind/m_main.c | 5 +++++ docs/xml/manual-core.xml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 87fbc8b30a..044467f282 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -434,6 +434,11 @@ static void early_process_cmd_line_options ( /*OUT*/Int* need_help ) /* For convenience */ VG_N_THREADS = VG_(clo_max_threads); + +# if defined(VGO_solaris) || defined(VGO_darwin) + /* Sim hint no-nptl-pthread-stackcache should be ignored. */ + VG_(clo_sim_hints) &= ~SimHint2S(SimHint_no_nptl_pthread_stackcache); +# endif } /* The main processing for command line options. See comments above diff --git a/docs/xml/manual-core.xml b/docs/xml/manual-core.xml index 88dadaf90f..24b2bcfd62 100644 --- a/docs/xml/manual-core.xml +++ b/docs/xml/manual-core.xml @@ -2086,7 +2086,8 @@ need to use them. - This hint is only relevant when running Valgrind on Linux. + This hint is only relevant when running Valgrind on Linux; + it is ignored on Solaris and Mac OS X. The GNU glibc pthread library (libpthread.so), which is used by -- 2.47.2