[lld] r285224 - Call _exit.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 10 11:03:19 PST 2016
On Thu, Nov 10, 2016 at 6:47 AM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
> On 10 November 2016 at 00:28, Rui Ueyama <ruiu at google.com> wrote:
> > I think we could add a new member function to SpecificBumpPtrAllocator to
> > discard all objects without calling their dtors. Now that almost all
> objects
> > are allocated from the pool, so if we call that function before exiting,
> > exit should be as fast as _exit.
>
> But is then the static destructors run the risk of accessing freed
> memory, no?
>
How does it happen?
Would calling llvm_shutdown solve the problem? In a non-lto build it
> should do nothing, in a lto build it should have the desired impact.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161110/e0177f2f/attachment.html>
More information about the llvm-commits
mailing list