[Lldb-commits] [PATCH] D47492: DWARFUnit::m_die_array swap()->shrink_to_fit()
David Blaikie via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 4 13:24:19 PDT 2018
dblaikie added a comment.
In https://reviews.llvm.org/D47492#1120599, @jankratochvil wrote:
> FYI I have filed it for libstdc++ but I did not really understand their reaction: Bug 86013 - std::vector::shrink_to_fit() could sometimes use realloc() <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86013>
Happy to help explain it - which part(s) are you having a bit of trouble with?
It seems like the main one is that the implementation can't be sure that malloc was used to allocate the memory - since the global allocation function can be replaced & there's no convenient way to detect that.
More information about the lldb-commits