From: Florian Krohm Date: Wed, 4 Feb 2015 18:01:19 +0000 (+0000) Subject: Remove unneeded code. X-Git-Tag: svn/VALGRIND_3_11_0~690 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e8f017072a48bdd741492de142a2178d2d7d33b;p=thirdparty%2Fvalgrind.git Remove unneeded code. VG_(extend_stack) checks whether the given address is covered by the stack. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14902 --- diff --git a/coregrind/m_syswrap/syswrap-main.c b/coregrind/m_syswrap/syswrap-main.c index 04611f6c09..1c522cdfa2 100644 --- a/coregrind/m_syswrap/syswrap-main.c +++ b/coregrind/m_syswrap/syswrap-main.c @@ -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 */