Displaying 4 results from an estimated 4 matches for "thisalloc".
Did you mean:
isalloc
2008 Oct 13
4
[LLVMdev] bug in the JIT global variable emitter
...JIT global variable emitter is using the
MachineCodeEmitter::allocate() function, which uses memory allocated by the
JIT memory manager (which should be used for functions only). The assert()
is triggered because the global variable is dumped to the header of the free
blocks list (provided that ThisAllocated becomes 1).
My proposed patch:
http://web.ist.utl.pt/nuno.lopes/llvm_jit_global_emitter.txt (similar to
what other JIT variable emitters do).
Please comment.
Thanks,
Nuno
2008 Oct 13
0
[LLVMdev] bug in the JIT global variable emitter
...doesn't handle
buffer overflow
well? You could get into problems with that when it contained only
code, although
it obviously gets hit more often now.
> The assert()
> is triggered because the global variable is dumped to the header of
> the free
> blocks list (provided that ThisAllocated becomes 1).
>
> My proposed patch:
> http://web.ist.utl.pt/nuno.lopes/llvm_jit_global_emitter.txt
> (similar to
> what other JIT variable emitters do).
>
> Please comment.
>
> Thanks,
> Nuno
>
> _______________________________________________
> LLVM Deve...
2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...s entry from FunctionBlocks.
> FunctionBlocks.erase(I);
> +
> + I = TableBlocks.find(F);
> + if (I == TableBlocks.end()) return;
> +
> + // Find the block that is allocated for this function.
> + MemRange = I->second;
> + assert(MemRange->ThisAllocated && "Block isn't allocated!");
> +
> + // Fill the buffer with garbage!
> +#ifndef NDEBUG
> + memset(MemRange+1, 0xCD, MemRange->BlockSize-
> sizeof(*MemRange));
> +#endif
> +
> + // Free the memory.
> + FreeMemoryList = Me...
2008 Feb 01
2
[LLVMdev] Exception handling in JIT
Dear all,
Here's a new patch with Evan's comments (thx Evan!) and some cleanups.
Now the (duplicated) exception handling code is in a new file:
lib/ExecutionEngine/JIT/JITDwarfEmitter.
This patch should work on linux/x86 and linux/ppc (tested).
Nicolas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jit-exceptions.patch
URL: