summaryrefslogtreecommitdiff
path: root/coregrind/m_main.c
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2007-12-22 14:12:42 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2007-12-22 14:12:42 +0000
commitc9d33836731e0f2f306ac6c4213ef267ea3b4150 (patch)
treee8f2d0e47590c45d958d5ed9d7899ab940ef7ed4 /coregrind/m_main.c
parentadacaf928b87b3921af283cf9e0eca55ccaaad96 (diff)
AIX5 counterpart to r7302: Improve handling of programs which require
very large main thread stacks. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7306 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'coregrind/m_main.c')
-rw-r--r--coregrind/m_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/coregrind/m_main.c b/coregrind/m_main.c
index 50992f48..85f34959 100644
--- a/coregrind/m_main.c
+++ b/coregrind/m_main.c
@@ -1470,12 +1470,14 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp )
# error "Uknown platform"
# endif
+ /* NOTE: this call reads VG_(clo_max_stackframe). */
the_iifii = VG_(ii_create_image)( the_iicii );
# if defined(VGO_aix5)
/* Tell aspacem where the initial client stack is, so that it
can later produce a faked-up NSegment in response to
VG_(am_find_nsegment) for that address range, if asked. */
+ /* NOTE: this call reads VG_(clo_max_stackframe). */
VG_(am_aix5_set_initial_client_sp)( the_iifii.initial_client_SP );
/* Now have a look at said fake segment, so we can find out
the size of it. */
@@ -1484,7 +1486,7 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp )
= VG_(am_find_nsegment)( the_iifii.initial_client_SP );
vg_assert(seg);
sz = seg->end - seg->start + 1;
- vg_assert(sz >= 0 && sz <= 64*1024*1024); /* stay sane */
+ vg_assert(sz >= 0 && sz <= (256+1)*1024*1024); /* stay sane */
the_iifii.clstack_max_size = sz;
}
# endif