|
From: <sv...@va...> - 2015-02-04 18:01:26
|
Author: florian
Date: Wed Feb 4 18:01:19 2015
New Revision: 14902
Log:
Remove unneeded code.
VG_(extend_stack) checks whether the given address is covered by the
stack.
Modified:
trunk/coregrind/m_syswrap/syswrap-main.c
Modified: trunk/coregrind/m_syswrap/syswrap-main.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-main.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-main.c Wed Feb 4 18:01:19 2015
@@ -1487,13 +1487,8 @@
# 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 */
|