[lld] r285224 - Call _exit.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 10 06:47:26 PST 2016
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?
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
More information about the llvm-commits
mailing list