[bugpoint] Increase the default memory limit for subprocesses to 300MB.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 25 Oct 2013 17:41:41 +0000 (17:41 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 25 Oct 2013 17:41:41 +0000 (17:41 +0000)
commit69f4280b5451071285700eb5bb5c38beb4336048
treee407cb61b1b18d643f8a86130efb31ed5cad88fa
parent50c5b4680d0a3d1341f0b0d441c7b5dd4e5cd732
[bugpoint] Increase the default memory limit for subprocesses to 300MB.

Summary:
Currently shared library builds (BUILD_SHARED_LIBS=ON in cmake) fail three
bugpoint tests (BugPoint/remove_arguments_test.ll,
BugPoint/crash-narrowfunctiontest.ll, and BugPoint/metadata.ll).

If I run the bugpoint commands that llvm-lit runs with without -silence-passes
I see errors such as this:
    opt: error while loading shared libraries: libLLVMSystemZInfo.so: failed to
    map segment from shared object: Cannot allocate memory

It seems that the increased size of the binaries in a shared library build is
causing the subprocess to exceed the 100MB memory limit. This patch therefore
increases the default limit to a level at which these tests pass.

Reviewers: dsanders

Reviewed By: dsanders

CC: llvm-commits, rafael
Differential Revision: http://llvm-reviews.chandlerc.com/D2013

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193420 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/bugpoint.cpp