[PATCH] D26006: Further reduce the number of allocators

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 27 11:17:03 PDT 2016


> Awesome!
>
> What we are observing here is that almost all "large" objects, such as
> files, sections or symbols, are used for the entire lifetime of the linker
> once they are created. This usage characteristic makes it attractive to use
> an arena allocator where the entire linker is one arena. With an arena,
> newly created objects belong to the arena and freed all at once once
> everything is done. Your global allocator patch is aligned to that concept,
> and I think we should rewrite more code in that direction as it is efficient
> and easy to understand.

I fully agree. I think that in the end we will have just a few
allocators. In fact, the only cases I can think of where having > 1
would make sense in when we find a way of freeing some memory before
we reach peak.

Cheers,
Rafael


More information about the llvm-commits mailing list