summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lli
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2009-07-23 00:49:59 +0000
committerReid Kleckner <reid@kleckner.net>2009-07-23 00:49:59 +0000
commit1a722d9b7306b9c14250bb6c86f104dc6bbfdded (patch)
tree73133062326a4574451485d682736eebb6f5970f /llvm/tools/lli
parent0228bc1a41fbd2b3cfecd05d6518bb424c9c34b4 (diff)
downloadbcm5719-llvm-1a722d9b7306b9c14250bb6c86f104dc6bbfdded.tar.gz
bcm5719-llvm-1a722d9b7306b9c14250bb6c86f104dc6bbfdded.zip
Make the JIT code emitter properly retry and ask for more memory when it runs
out of memory, and also make the default memory manager allocate more memory when it runs out. Also, switch function stubs and global data over to using the BumpPtrAllocator. This makes it so the JIT no longer mmaps (or the equivalent on Windows) 16 MB of memory, and instead allocates in 512K slabs. I suspect this size could go lower, especially on embedded platforms, now that more slabs can be allocated. llvm-svn: 76828
Diffstat (limited to 'llvm/tools/lli')
-rw-r--r--llvm/tools/lli/lli.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 0337703ecf5..f9d86d75b1a 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -136,9 +136,6 @@ int main(int argc, char **argv, char * const *envp) {
builder.setEngineKind(ForceInterpreter
? EngineKind::Interpreter
: EngineKind::JIT);
- // FIXME: Don't allocate GVs with code once the JIT because smarter about
- // memory management.
- builder.setAllocateGVsWithCode(true);
// If we are supposed to override the target triple, do so now.
if (!TargetTriple.empty())
OpenPOWER on IntegriCloud