From d9d43c3032eb813f4afba3d502dccdc0f58f3f25 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 10 Mar 2009 09:26:07 +0000 Subject: [PATCH] Added support for the VG_USERREQ__HG_CLEAN_MEMORY client request. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9340 --- drd/drd_clientreq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drd/drd_clientreq.c b/drd/drd_clientreq.c index 8a94741809..281d1a69eb 100644 --- a/drd/drd_clientreq.c +++ b/drd/drd_clientreq.c @@ -25,11 +25,13 @@ #include "drd_barrier.h" #include "drd_clientreq.h" #include "drd_cond.h" +#include "drd_load_store.h" #include "drd_mutex.h" #include "drd_rwlock.h" #include "drd_semaphore.h" #include "drd_suppression.h" // drd_start_suppression() #include "drd_thread.h" +#include "../helgrind/helgrind.h" #include "pub_tool_basics.h" // Bool #include "pub_tool_debuginfo.h" // VG_(describe_IP)() #include "pub_tool_libcassert.h" @@ -367,6 +369,11 @@ Bool DRD_(handle_client_request)(ThreadId vg_tid, UWord* arg, UWord* ret) DRD_(thread_leave_synchr)(drd_tid); break; + case VG_USERREQ__HG_CLEAN_MEMORY: + if (arg[2] > 0) + DRD_(clean_memory)(arg[1], arg[2]); + break; + default: VG_(message)(Vg_DebugMsg, "Unrecognized client request 0x%lx 0x%lx", arg[0], arg[1]); -- 2.47.3