aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2022-02-16 08:03:24 -0800
committerNathan Sidwell <nathan@acm.org>2022-03-01 04:37:24 -0800
commit024495e62660a51edd060b57a95ca68d584d3b43 (patch)
tree1aa204fc7ba9816e01925adc770fbad79312f1f7 /clang/lib/Lex/ModuleMap.cpp
parente5c98e22fbbe3c3eb5f2c782d0789098afc81518 (diff)
downloadllvm-024495e62660a51edd060b57a95ca68d584d3b43.zip
llvm-024495e62660a51edd060b57a95ca68d584d3b43.tar.gz
llvm-024495e62660a51edd060b57a95ca68d584d3b43.tar.bz2
[demangler] Improve buffer hysteresis
Improve demangler buffer hysteresis. If we needed more than double the buffer, the original code would allocate exactly the amount needed, and thus consequently the next request would also realloc. We're very unlikely to get into wanting more than double, after the first allocation, as it would require the user to have used an identifier larger than the hysteresis. With machine generated code that's possible, but unlikely. Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D119972
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions