[PATCH] D26043: Replace GAlloc with a template function.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 13:56:31 PDT 2016


Thanks. Please go ahead and submit.

On Tue, Nov 1, 2016 at 1:42 PM, Rafael Espíndola <rafael.espindola at gmail.com
> wrote:

> Fixed the problem and a rebased patch is attached.
>
> Cheers,
> Rafael
>
>
> On 1 November 2016 at 16:01, Rafael Espíndola
> <rafael.espindola at gmail.com> wrote:
> > I see. I will fix that.
> >
> > Cheers,
> > Rafael
> >
> >
> > On 1 November 2016 at 13:12, Rui Ueyama <ruiu at google.com> wrote:
> >> One test is failing with this patch because of the reason I described
> in the
> >> review thread for https://reviews.llvm.org/D25516.
> >>
> >> On Tue, Nov 1, 2016 at 5:09 AM, Rafael Espíndola
> >> <rafael.espindola at gmail.com> wrote:
> >>>
> >>> Ping on the commit :-)
> >>>
> >>> Cheers,
> >>> Rafael
> >>>
> >>>
> >>> On 28 October 2016 at 18:22, Rui Ueyama <ruiu at google.com> wrote:
> >>> > ruiu added inline comments.
> >>> >
> >>> >
> >>> > ================
> >>> > Comment at: ELF/Memory.cpp:23
> >>> > +
> >>> > +void elf::freeArena() {
> >>> > +  for (SpecificAllocBase *Alloc : SpecificAllocBase::Instances)
> >>> > ----------------
> >>> > rafael wrote:
> >>> >> Do we still need to free this at a specific point in time? If not
> just
> >>> >> letting the destructors take care of it should simplify the code.
> >>> > This is for the use case in which you directly call lld::elf::link
> from
> >>> > your program. In that use case, we want to free all memories before
> >>> > returning from link().
> >>> >
> >>> >
> >>> > https://reviews.llvm.org/D26043
> >>> >
> >>> >
> >>> >
> >>
> >>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161101/aae088be/attachment.html>


More information about the llvm-commits mailing list