tsan: increase /proc/self/maps max size (1M is far not enough)

llvm-svn: 157570
This commit is contained in:
Dmitry Vyukov 2012-05-28 09:24:01 +00:00
parent bd310f02a5
commit d558530754
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,
*tls_size = g_tls_size;
if (main) {
uptr kBufSize = 1 << 20;
uptr kBufSize = 1 << 26;
char *buf = (char*)my_mmap(0, kBufSize, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANON, -1, 0);
fd_t maps = internal_open("/proc/self/maps", false);