summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-08-07 01:30:15 +0000
committerDale Johannesen <dalej@apple.com>2008-08-07 01:30:15 +0000
commitb086d3820da6ad5529366644689754d74ee907c4 (patch)
tree93230ba3a750ea4b9844305a4b6d32be6f1c8ce2 /llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
parent955516e6c7f94e8dd1076c0351742ced9876b16c (diff)
downloadbcm5719-llvm-b086d3820da6ad5529366644689754d74ee907c4.tar.gz
bcm5719-llvm-b086d3820da6ad5529366644689754d74ee907c4.zip
Rewrite JIT handling of GlobalVariables so they
are allocated in the same buffer as the code, jump tables, etc. The default JIT memory manager does not handle buffer overflow well. I didn't introduce this and I'm not attempting to fix it here, but it is more likely to be hit now since we're putting more stuff in the buffer. This affects one test that I know of so far, MultiSource/Benchmarks/NPB-serial/is. llvm-svn: 54442
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
index 248291634cc..d2d5c2f8e0d 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
@@ -290,7 +290,7 @@ namespace {
assert(FunctionEnd > FunctionStart);
assert(FunctionStart == (unsigned char *)(CurBlock+1) &&
"Mismatched function start/end!");
-
+
uintptr_t BlockSize = FunctionEnd - (unsigned char *)CurBlock;
FunctionBlocks[F] = CurBlock;
OpenPOWER on IntegriCloud