From: Philippe Waroquiers Date: Tue, 23 Feb 2016 21:12:38 +0000 (+0000) Subject: rollback revision 15807, find segment is to be called anyway X-Git-Tag: svn/VALGRIND_3_12_0~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d3a107f03df26f56025600b08348652a525fc3c;p=thirdparty%2Fvalgrind.git rollback revision 15807, find segment is to be called anyway git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15808 --- diff --git a/coregrind/m_stacks.c b/coregrind/m_stacks.c index 56a564f6f0..aac5ebf7f0 100644 --- a/coregrind/m_stacks.c +++ b/coregrind/m_stacks.c @@ -270,13 +270,13 @@ void VG_(change_stack)(UWord id, Addr start, Addr end) void VG_(stack_limits)(Addr SP, Addr *start, Addr *end ) { Stack* stack = find_stack_by_addr(SP); + NSegment const *stackseg = VG_(am_find_nsegment) (SP); if (LIKELY(stack)) { *start = stack->start; *end = stack->end; } - NSegment const *stackseg = VG_(am_find_nsegment) (SP); /* SP is assumed to be in a RW segment or in the SkResvn segment of an extensible stack (normally, only the main thread has an extensible stack segment).