coregrind/stage1.c | 7 +++++++ 1 files changed, 7 insertions(+) diff -puN coregrind/stage1.c~fix-virtlim coregrind/stage1.c --- valgrind/coregrind/stage1.c~fix-virtlim 2004-03-01 12:56:06.410940664 -0800 +++ valgrind-jeremy/coregrind/stage1.c 2004-03-01 13:05:13.805724008 -0800 @@ -196,6 +196,7 @@ static void hoops(void) int main(int argc, char **argv) { + struct rlimit rlim; const char *cp = getenv(VALGRINDLIB); if (cp != NULL) @@ -205,6 +206,12 @@ int main(int argc, char **argv) our_argc = argc; + /* Set the address space limit as high as it will go, since we make + a lot of very large mappings. */ + getrlimit(RLIMIT_AS, &rlim); + rlim.rlim_cur = rlim.rlim_max; + setrlimit(RLIMIT_AS, &rlim); + /* move onto another stack so we can play with the main one */ ume_go((addr_t)hoops, (addr_t)stack + sizeof(stack)); } _