diff options
author | Chia-hung Duan <chiahungduan@google.com> | 2022-10-13 22:03:06 +0000 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-10-15 03:06:08 -0700 |
commit | fd03ee2a49873020c763ca0ee81d7deee1e9a040 (patch) | |
tree | 55842dd1cce0665315b0168121471fae2b81a1a1 /standalone/tools | |
parent | fe4e4e4b447807a606cb8116370e3585236f23fb (diff) | |
download | scudo-fd03ee2a49873020c763ca0ee81d7deee1e9a040.tar.gz |
Use u16 to store Count/MaxCount
The Count/MaxCount used in TransferBatch and PerClass can be fit in u16 in
current configurations and it's also reasonable to have a u16 limit. The
spare 16 bits will be used for additional status like pages mapping
status in a TransferBatch.
Reviewed By: cryptoad, cferris, vitalybuka
Differential Revision: https://reviews.llvm.org/D133145
GitOrigin-RevId: 0fb2aeef5310eaba2915b30810464a744a80da15
Change-Id: Ied3f990afa99d9b0c7b4a60bd545ac6e25d33f90
Diffstat (limited to 'standalone/tools')
-rw-r--r-- | standalone/tools/compute_size_class_config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/standalone/tools/compute_size_class_config.cpp b/standalone/tools/compute_size_class_config.cpp index 8b17be0e965..bcaa5834932 100644 --- a/standalone/tools/compute_size_class_config.cpp +++ b/standalone/tools/compute_size_class_config.cpp @@ -140,7 +140,7 @@ struct MySizeClassConfig { static const uptr MinSizeLog = %zu; static const uptr MidSizeLog = %zu; static const uptr MaxSizeLog = %zu; - static const u32 MaxNumCachedHint = 14; + static const u16 MaxNumCachedHint = 14; static const uptr MaxBytesCachedLog = 14; static constexpr u32 Classes[] = {)", |