]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove unneeded code.
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 4 Feb 2015 18:01:19 +0000 (18:01 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 4 Feb 2015 18:01:19 +0000 (18:01 +0000)
VG_(extend_stack) checks whether the given address is covered by the
stack.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14902

coregrind/m_syswrap/syswrap-main.c

index 04611f6c092ee96c3672a6bc3e4c41c185b255f4..1c522cdfa2f3d431d3eb3d5d6334256edbcc238e 100644 (file)
@@ -1487,13 +1487,8 @@ void VG_(client_syscall) ( ThreadId tid, UInt trc )
 #  if defined(VGO_linux)
    if (tid == 1/*ROOT THREAD*/) {
       Addr     stackMin   = VG_(get_SP)(tid) - VG_STACK_REDZONE_SZB;
-      NSegment const* seg = VG_(am_find_nsegment)(stackMin);
-      if (seg && seg->kind == SkAnonC) {
-         /* stackMin is already mapped.  Nothing to do. */
-      } else {
-         (void)VG_(extend_stack)( stackMin,
-                                  tst->client_stack_szB );
-      }
+
+      VG_(extend_stack)( stackMin, tst->client_stack_szB );
    }
 #  endif
    /* END ensure root thread's stack is suitably mapped */