<div dir="ltr">> The default implementation does *not* do that.<div><br></div><div>That's why I suggested that we add a new mode with a memory manager that does do that. ;)<div><br></div><div>> The necessary mmap flags are not portable either.</div><div><br></div><div>I don't think we'd need mmap. I'm imagining that this mode would be for regression tests only. It would use a trivial RTDyldMemoryManager subclass that wraps a bump-ptr allocator and reserves some small amount of memory (~16Mb seems like it should be fine) up front. </div><div><br></div><div>Another item for the JIT to-do list. :)</div><div><br></div><div>Cheers,</div><div>Lang.</div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 26, 2014 at 2:25 AM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On Tue, Nov 25, 2014 at 11:07:16PM -0800, Lang Hames wrote:<br>
> It may be worth filing a bug for this, since we still want small-code-model<br>
> to be supported in the JIT. To make this testable we'd need to add a mode<br>
> to LLI that guarantees allocations compatible with small code model.<br>
<br>
</span>As discussed with echristo on IRC, small code model for JIT does work IF<br>
the memory manager ensures that the constraints are implemented. The<br>
default implementation does *not* do that. The necessary mmap flags are<br>
not portable either.<br>
<span><font color="#888888"><br>
Joerg<br>
</font></span><div><div>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">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></div></blockquote></div><br></div></div></div>