|
From: <sv...@va...> - 2017-05-31 13:48:06
|
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
|