aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/Platform.cpp
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2021-06-03 12:11:05 -0700
committerKostya Kortchinsky <kostyak@google.com>2021-06-03 18:12:24 -0700
commit868317b3fd765830c07ecf16cbfcf6c7708adc3c (patch)
treecb0c956fbbd7251b242b86bfc7719b15e0312bf7 /llvm/lib/TextAPI/Platform.cpp
parent5c600dc6d4b75bc71dc3033f37ea187b3fd454d7 (diff)
downloadllvm-868317b3fd765830c07ecf16cbfcf6c7708adc3c.zip
llvm-868317b3fd765830c07ecf16cbfcf6c7708adc3c.tar.gz
llvm-868317b3fd765830c07ecf16cbfcf6c7708adc3c.tar.bz2
[scudo] Rework Vector/String
Some platforms (eg: Trusty) are extremelly memory constrained, which doesn't necessarily work well with some of Scudo's current assumptions. `Vector` by default (and as such `String` and `ScopedString`) maps a page, which is a bit of a waste. This CL changes `Vector` to use a buffer local to the class first, then potentially map more memory if needed (`ScopedString` currently are all stack based so it would be stack data). We also want to allow a platform to prevent any dynamic resizing, so I added a `CanGrow` templated parameter that for now is always `true` but would be set to `false` on Trusty. Differential Revision: https://reviews.llvm.org/D103641
Diffstat (limited to 'llvm/lib/TextAPI/Platform.cpp')
0 files changed, 0 insertions, 0 deletions