Commit 800e1f62 authored by Igor Sugak's avatar Igor Sugak Committed by Facebook Github Bot

disable VDSO clock_gettime optimization in MSAN build mode

Reviewed By: yfeldblum

Differential Revision: D19359673

fbshipit-source-id: 610ae77e205038267e0e331a04486eef0329c165
parent a113000d
......@@ -15,6 +15,7 @@
*/
#include <folly/ClockGettimeWrappers.h>
#include <folly/CPortability.h>
#include <folly/Likely.h>
#include <folly/portability/Time.h>
......@@ -48,7 +49,9 @@ static int64_t clock_gettime_ns_fallback(clockid_t clock) {
int (*clock_gettime)(clockid_t, timespec* ts) = &::clock_gettime;
int64_t (*clock_gettime_ns)(clockid_t) = &clock_gettime_ns_fallback;
#ifdef FOLLY_HAVE_LINUX_VDSO
// In MSAN mode use glibc's versions as they are intercepted by the MSAN
// runtime which properly tracks memory initialization.
#if defined(FOLLY_HAVE_LINUX_VDSO) && !defined(FOLLY_SANITIZE_MEMORY)
namespace {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment