|
From: <sv...@va...> - 2014-11-05 15:54:29
|
Author: sewardj
Date: Wed Nov 5 15:54:21 2014
New Revision: 14692
Log:
Back out the darwin-specific part of r14683, since darwin doesn't
appear to have SHM_HUGETLB, and it causes build failures.
Modified:
trunk/coregrind/m_syswrap/syswrap-darwin.c
Modified: trunk/coregrind/m_syswrap/syswrap-darwin.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-darwin.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-darwin.c Wed Nov 5 15:54:21 2014
@@ -2310,15 +2310,6 @@
{
PRINT("shmget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "shmget", vki_key_t, key, vki_size_t, size, int, shmflg);
- if (ARG3 & VKI_SHM_HUGETLB) {
- static Bool warning_given = False;
- ARG3 &= ~VKI_SHM_HUGETLB;
- if (!warning_given) {
- warning_given = True;
- VG_(umsg)(
- "WARNING: valgrind ignores shmget(shmflg) SHM_HUGETLB\n");
- }
- }
}
PRE(shm_open)
|