]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Ignore sim hint "no-nptl-pthread-stackcache"
authorIvo Raisr <ivosh@ivosh.net>
Wed, 31 May 2017 13:47:57 +0000 (13:47 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Wed, 31 May 2017 13:47:57 +0000 (13:47 +0000)
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
docs/xml/manual-core.xml

index 87fbc8b30ac62e9f777600ff18ed756991091ad9..044467f282ec0c859f4db3a8ac34e46a8dc21825 100644 (file)
@@ -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
index 88dadaf90fdd2c86cf960125f862493fbdb85d26..24b2bcfd628e901bb1eeac059bc1e402e6bee8ee 100644 (file)
@@ -2086,7 +2086,8 @@ need to use them.</para>
         </listitem>
         <listitem>
           <para><option>no-nptl-pthread-stackcache: </option>
-            This hint is only relevant when running Valgrind on Linux.</para>
+            This hint is only relevant when running Valgrind on Linux;
+            it is ignored on Solaris and Mac OS X.</para>
 
           <para>The GNU glibc pthread library
             (<function>libpthread.so</function>), which is used by