Now that the JIT memory manager allocates as many bytes as necessary rather than
authorMisha Brukman <brukman+llvm@gmail.com>
Fri, 15 Aug 2003 18:03:06 +0000 (18:03 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Fri, 15 Aug 2003 18:03:06 +0000 (18:03 +0000)
rounding up to a page, we need to request (num instrs * 4) bytes. However, I
think that 64 bytes is overkill for the stub function.

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

lib/Target/SparcV9/SparcV9CodeEmitter.cpp

index 82868827c3fc4ee67efa07da1587388e78edd2ec..51254e21c9d99e3a54d3f2b2839ccc3ab1cab595 100644 (file)
@@ -373,7 +373,8 @@ uint64_t JITResolver::CompilationCallback() {
 /// directly.
 ///
 uint64_t JITResolver::emitStubForFunction(Function *F) {
-  MCE.startFunctionStub(*F, 20);
+  // FIXME: 40 is not enough... but should be
+  MCE.startFunctionStub(*F, 64);
 
   DEBUG(std::cerr << "Emitting stub at addr: 0x" 
                   << std::hex << MCE.getCurrentPCValue() << "\n");