[LLVMdev] JIT allocates global data in function body memory

Dale Johannesen dalej at apple.com
Wed Jul 1 10:26:23 PDT 2009


On Jul 1, 2009, at 9:57 AMPDT, Reid Kleckner wrote:

>> We have been JITing kernels and having a memory manager for globals
>> would be a big win there (clean up a few hacks to make things go in
>> the correct locations).
>
> I'm also guessing that Dale's client at Apple is using a custom memory
> manager, since without doing that there's no way to get the size of
> the code block in order to send it over the wire.  Adding an
> allocateGlobal method would probably allow them to trap it and also
> send it over the wire, but they say they don't want to make any code
> changes.
>
> I'd like to get some guidance on what's acceptable before I send a
> patch to llvm-commits, though.

I've asked Evan to look at your patch; I really haven't looked at that  
area since I put that patch in, and he knows it better.

Apple's security restrictions are annoying at time, trust me, I know.   
It's not the decision of anybody working on LLVM.




More information about the llvm-dev mailing list