Open vinsonlee opened 12 years ago
Hello Vinson,
This error rises because you create the MCJITMemoryManager with empty jmm paramether. In this case the MCJITMemoryManager constructor creates the DefaultJITMemoryManager and use it as jmm. But the MCJITMemoryManager shouldn't use the DefaultJITMemoryManager by following reason:
I had prepared the patch for removing creation of the DefaultJITMemoryManager from MCJITMemoryManager constructor: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120723/147095.html
Regards, Danil
068c65b22d50c265b51886062b2b9c1cb696d67d is the first bad commit commit 068c65b22d50c265b51886062b2b9c1cb696d67d Author: Danil Malyshev dmalyshev@accesssoftek.com Date: Wed May 16 18:50:11 2012 +0000
Added LLIMCJITMemoryManager to the lli. This manager will be used for MCJIT instead of DefaultJIMMemoryManager.
It's more flexible for MCJIT tasks, in addition it's provides a invalidation instruction cache for code sections which will be used before JIT code will be executed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156933 91177308-0d34-0410-b5e6-96231b3b80d8
:040000 040000 e70c63895968cf19323edb1d6c5a887f18bf528d d28aea31ff11c28ee3509b9d147c93b2908d8aea M lib :040000 040000 2e8d344c97a55ca1a0d41631f52f48b5ccc9517b 905a5659f51f40b23cc67e31bbb116f4e36fddd0 M tools bisect run success
(gdb) bt
Extended Description
llvm-3.2svn r160493
Run Mesa unit test lp_test_arit.
$ lp_test_arit Assertion failed: (!ThisAllocated && !getBlockAfter().PrevAllocated && "Cannot allocate an allocated block!"), function AllocateBlock, file JITMemoryManager.cpp, line 146