[llvm-commits] Changes to BumpPtrAllocator so it can be used for JITed function stubs and globals

Reid Kleckner rnk at mit.edu
Tue Jul 21 14:09:52 PDT 2009


I made some changes in response to djg's comments on IRC.
BumpPtrAllocatorBase now takes a template parameter for the slab
allocator, and BumpPtrAllocator just fills in the default malloc
allocator.  PTAL.

Thanks,
Reid

On Mon, Jul 20, 2009 at 2:26 PM, Reid Kleckner<rnk at mit.edu> wrote:
> This parameterizes the BumpPtrAllocator over a slab allocation
> strategy.  It defaults to using malloc, and there should be no
> functional changes to other code.  It passes make check.  These
> changes are needed so I don't have to write a second bump allocator in
> the JIT memory manager, which can't use malloc since the memory must
> be marked executable.  Please review!
>
> Thanks,
> Reid
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SupportAllocatorPatch.diff
Type: text/x-diff
Size: 12723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090721/45d655f7/attachment.diff>


More information about the llvm-commits mailing list