<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19088">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body ocsi="x">
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: x-small">
<div>Hi Jim,</div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">So, it's looks like virtual emitSections() in the RTDyldMemoryManager, and implementation in the MCJITMemoryManager as clear cache for sections. The only thing I do not like the name emitSections(), it's will not correspond MCJITMemoryManager
 implementation, but I cannot find more closely name.</font></div>
<div><font face="tahoma">If its ok for you, I'll change the patch soon.</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">Regards,</font></div>
<div><font face="tahoma">Danil</font></div>
<div dir="ltr"><font color="#000000" size="2" face="Tahoma"></font> </div>
<div style="DIRECTION: ltr" id="divRpF312968">
<hr tabindex="-1">
<font color="#000000" size="2" face="Tahoma"><b>From:</b> Jim Grosbach [grosbach@apple.com]<br>
<b>Sent:</b> Monday, May 07, 2012 4:16 PM<br>
<b>To:</b> Danil Malyshev<br>
<b>Cc:</b> llvm-commits@cs.uiuc.edu<br>
<b>Subject:</b> Re: [llvm-commits] [llvm] [Patch] Add RuntimeDyld.invalidateEmittedSectionsCache()<br>
</font><br>
</div>
<div></div>
<div>
<div>Hi Danil,</div>
<div><br>
</div>
That's not the RuntimeDyld's job. That functionality belongs in elsewhere, probably in the client's memory manager implementation where it's hooked into copying the compiled code into the target's address space. For a hosted platform, something similar just
 w/o the copying.
<div><br>
</div>
<div>-Jim</div>
<div><br>
<div>
<div>
<div>
<div>On May 7, 2012, at 2:09 PM, Danil Malyshev <<a href="mailto:dmalyshev@accesssoftek.com">dmalyshev@accesssoftek.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; FONT-SIZE: x-small">
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">Hi everyone,</div>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">Please review attached the patch.</div>
<div style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">This patch adds invalidateEmmittedSectionsCache() to the RuntimeDyld and uses it in the MCJIT after resolve relocations.<br>
The MCJIT works unstable on the ARM platforms without it.<br>
This patch haven't any tests because I want to commit the common ExecutionEngine/MCJIT tests after attached the patch will be committed. These tests will cover it.<br>
</div>
<div></div>
<div dir="ltr"><font size="2" face="Tahoma">Regards,</font></div>
<div dir="ltr"><font face="tahoma">Danil</font></div>
</div>
<span><RuntimeDyld_invalidateEmittedSectionsCache-01.patch></span>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>