[llvm-commits] [PATCH] lli memory manager does not ensure proper alignment
Tim Northover
t.p.northover at gmail.com
Fri Oct 12 06:01:06 PDT 2012
>> Also, I think the amount calculation is dodgy. Suppose Size=1 and
>> Alignment=16. It would then ask for 16 bytes. But if a misaligned
>> address was returned, it would align it up to the end of the block and
>> use incorrect memory for the single byte.
>
> Actually, ignore that. I forgot that the memory past the alignment
> sentinal is good.
But not good enough! Mwahahahaha! Size=15 and Align=16 still goes
wrong, I think.
Tim. (who may get it right one of these days).
More information about the llvm-commits
mailing list