|
From: <sv...@va...> - 2016-02-23 21:12:45
|
Author: philippe
Date: Tue Feb 23 21:12:38 2016
New Revision: 15808
Log:
rollback revision 15807, find segment is to be called anyway
Modified:
trunk/coregrind/m_stacks.c
Modified: trunk/coregrind/m_stacks.c
==============================================================================
--- trunk/coregrind/m_stacks.c (original)
+++ trunk/coregrind/m_stacks.c Tue Feb 23 21:12:38 2016
@@ -270,13 +270,13 @@
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).
|