Valgrind: r16424 - in /trunk: coregrind/m_main.c docs/xml/manual-core.xml

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Valgrind: r16424 - in /trunk: coregrind/m_main.c docs/xml/manual-core.xml

svn-2
Author: iraisr
Date: Wed May 31 14:47:57 2017
New Revision: 16424

Log:
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

Modified:
    trunk/coregrind/m_main.c
    trunk/docs/xml/manual-core.xml

Modified: trunk/coregrind/m_main.c
==============================================================================
--- trunk/coregrind/m_main.c (original)
+++ trunk/coregrind/m_main.c Wed May 31 14:47:57 2017
@@ -434,6 +434,11 @@
 
    /* 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

Modified: trunk/docs/xml/manual-core.xml
==============================================================================
--- trunk/docs/xml/manual-core.xml (original)
+++ trunk/docs/xml/manual-core.xml Wed May 31 14:47:57 2017
@@ -2086,7 +2086,8 @@
         </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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers