projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
re2
/
util
/
util.h
diff --git
a/src/third_party/re2/util/util.h
b/src/third_party/re2/util/util.h
index
de1ef5b
..
49159c2
100644
(file)
--- a/
src/third_party/re2/util/util.h
+++ b/
src/third_party/re2/util/util.h
@@
-129,6
+129,14
@@
static inline uint64 Hash64StringWithSeed(const char* s, int len, uint32 seed) {
return ((uint64)x << 32) | y;
}
+inline bool RunningOnValgrindOrMemorySanitizer() {
+#if defined(MEMORY_SANITIZER)
+ return true;
+#else
+ return RunningOnValgrind();
+#endif
+}
+
} // namespace re2
#include "util/arena.h"