]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Set client mem permissions in do__cleanup_pop.
authorJulian Seward <jseward@acm.org>
Wed, 29 May 2002 16:48:44 +0000 (16:48 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 29 May 2002 16:48:44 +0000 (16:48 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@332

coregrind/vg_scheduler.c
vg_scheduler.c

index af091eca4212682ce4cdaedfcf0a4abab71d0795..c6314564813d27f9d079b09269b2e3991f908c84 100644 (file)
@@ -1733,6 +1733,8 @@ void do__cleanup_pop ( ThreadId tid, CleanupEntry* cu )
    }
    sp--;
    *cu = VG_(threads)[tid].custack[sp];
+   if (VG_(clo_instrument))
+      VGM_(make_readable)( (Addr)cu, sizeof(CleanupEntry) );
    VG_(threads)[tid].custack_used = sp;
    SET_EDX(tid, 0);
 }
index af091eca4212682ce4cdaedfcf0a4abab71d0795..c6314564813d27f9d079b09269b2e3991f908c84 100644 (file)
@@ -1733,6 +1733,8 @@ void do__cleanup_pop ( ThreadId tid, CleanupEntry* cu )
    }
    sp--;
    *cu = VG_(threads)[tid].custack[sp];
+   if (VG_(clo_instrument))
+      VGM_(make_readable)( (Addr)cu, sizeof(CleanupEntry) );
    VG_(threads)[tid].custack_used = sp;
    SET_EDX(tid, 0);
 }