From 7f0a29ec6e432bd3cdaeb0998005cb022acc3270 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Thu, 30 Jun 2016 15:34:45 +0200 Subject: [PATCH] Apply v8-3.14.5.10-system-valgrind.patch Use system valgrind header. https://bugzilla.redhat.com/show_bug.cgi?id=1141483 --- src/ia32/cpu-ia32.cc | 5 ++--- src/x64/cpu-x64.cc | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ia32/cpu-ia32.cc b/src/ia32/cpu-ia32.cc index 9eabb2a9693b..32cda7401e5f 100644 --- a/src/ia32/cpu-ia32.cc +++ b/src/ia32/cpu-ia32.cc @@ -28,7 +28,7 @@ // CPU specific code for ia32 independent of OS goes here. #ifdef __GNUC__ -#include "third_party/valgrind/valgrind.h" +#include #endif #include "v8.h" @@ -67,8 +67,7 @@ void CPU::FlushICache(void* start, size_t size) { // solution is to run valgrind with --smc-check=all, but this comes at a big // performance cost. We can notify valgrind to invalidate its cache. #ifdef VALGRIND_DISCARD_TRANSLATIONS - unsigned res = VALGRIND_DISCARD_TRANSLATIONS(start, size); - USE(res); + VALGRIND_DISCARD_TRANSLATIONS(start, size); #endif } diff --git a/src/x64/cpu-x64.cc b/src/x64/cpu-x64.cc index 80e22c629764..459971c2b12d 100644 --- a/src/x64/cpu-x64.cc +++ b/src/x64/cpu-x64.cc @@ -28,7 +28,7 @@ // CPU specific code for x64 independent of OS goes here. #if defined(__GNUC__) && !defined(__MINGW64__) -#include "third_party/valgrind/valgrind.h" +#include #endif #include "v8.h" @@ -67,8 +67,7 @@ void CPU::FlushICache(void* start, size_t size) { // solution is to run valgrind with --smc-check=all, but this comes at a big // performance cost. We can notify valgrind to invalidate its cache. #ifdef VALGRIND_DISCARD_TRANSLATIONS - unsigned res = VALGRIND_DISCARD_TRANSLATIONS(start, size); - USE(res); + VALGRIND_DISCARD_TRANSLATIONS(start, size); #endif }