[llvm-commits] [PATCH][MCJIT] Removing DefaultJITMemoryManager from MCJITMemoryManager

Danil Malyshev dmalyshev at accesssoftek.com
Thu Jul 26 15:50:03 PDT 2012


Hi Andrew


I agree that the absence of default does not looks good.
But in my view, using a non-working MemoryManager as default is even worse, because misleading.
I think that LLIMCJITMemoryManager a good candidate for the default value, but I do not see as it's possible to use it for that right now. When the JIT goes out, the DefaultJITMemoryManager can be merged with LLIMCJITMemoryManager and then it can be used as default MM again.



Regards,
Danil

________________________________
From: Kaylor, Andrew [mailto:andrew.kaylor at intel.com]
Sent: Thursday, July 26, 2012 10:29 PM
To: Danil Malyshev; llvm-commits at cs.uiuc.edu
Subject: RE: [llvm-commits] [PATCH][MCJIT] Removing DefaultJITMemoryManager from MCJITMemoryManager

It seems like a bad idea to start requiring a non-NULL JMM.  It wasn't long ago that the reference implementations like lli were leaving that NULL, and I believe that for small objects it works.  That said, I do think something needs to be done to get a better default behavior for MCJIT.

Did you happen to see my recent proposal for MCJIT enhancements?

-Andy

From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Danil Malyshev
Sent: Wednesday, July 25, 2012 5:18 PM
To: llvm-commits at cs.uiuc.edu
Subject: [llvm-commits] [PATCH][MCJIT] Removing DefaultJITMemoryManager from MCJITMemoryManager

Hi everyone,


Please review attached the patch.
The MCJITMemoryManager shouldn't use the DefaultJITMemoryManager by following reason:
1. It does not have any methods for invalidating instruction cache, so attempt to execute the code might be fail in ARM platforms.
2. The repeated call of DefaultJITMemoryManager.allocateDataSection() fails.
But the MCJITMemoryManager misleading because his constructor create the DefaultJITMemoryManager if jmm parameter is empty. This patch fixed it.


Regards,
Danil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120726/a247c4cb/attachment.html>


More information about the llvm-commits mailing list