diff options
author | Dale Johannesen <dalej@apple.com> | 2008-08-07 01:30:15 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-08-07 01:30:15 +0000 |
commit | dd947ea3c5e020c33c58a31939561265b980a3ad (patch) | |
tree | 1ed06d324e47916a3ffaecc9f5d8978562c16a56 /lib/ExecutionEngine/JIT/JITMemoryManager.cpp | |
parent | 39fd6e81b1b0de8b820155dc6a0dae226c109de6 (diff) | |
download | external_llvm-dd947ea3c5e020c33c58a31939561265b980a3ad.zip external_llvm-dd947ea3c5e020c33c58a31939561265b980a3ad.tar.gz external_llvm-dd947ea3c5e020c33c58a31939561265b980a3ad.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JITMemoryManager.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITMemoryManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp index 2482916..d2d5c2f 100644 --- a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp +++ b/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; |