aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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
commit8878ad2cbbc1af6917fb3f2cfad1fa8e9b5aa119 (patch)
tree05ebfa127cf6703aeb1d5fd3001ada1823379973 /tools
parente672dc2856f6334d4d218e260e3aae04ab97909c (diff)
downloadexternal_llvm-8878ad2cbbc1af6917fb3f2cfad1fa8e9b5aa119.zip
external_llvm-8878ad2cbbc1af6917fb3f2cfad1fa8e9b5aa119.tar.gz
external_llvm-8878ad2cbbc1af6917fb3f2cfad1fa8e9b5aa119.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/lli/lli.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 0337703..f9d86d7 100644
--- a/tools/lli/lli.cpp
+++ b/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())