diff options
author | 2021-10-25 10:31:15 +0100 | |
---|---|---|
committer | 2021-10-25 13:16:39 +0000 | |
commit | 394a082fc9268f7af97ed2e0e9fed4e459508e92 (patch) | |
tree | 32655526dc4d9d52d2a23f0f2307ae7753075148 | |
parent | 0bc369b6a7c6d380876574f5b1f7fe3aa78839fb (diff) |
Change `BitTableBase<>::num_rows_` to `uint32_t`.
For 64-bit targets, changing the member from `size_t` to
`uint32_t` reduces `sizeof(CodeInfo)` from 376 to 336 and
keeps the `Thread::CreateInternalStackTrace()` from reaching
the `-Wframe-larger-than=` limit enforced with `-Werror`.
Test: m
Change-Id: Ic42192355d224ca6afc3927506606a00ee084e19
-rw-r--r-- | libartbase/base/bit_table.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libartbase/base/bit_table.h b/libartbase/base/bit_table.h index 0993648d19..07e6b27135 100644 --- a/libartbase/base/bit_table.h +++ b/libartbase/base/bit_table.h @@ -77,11 +77,11 @@ class BitTableBase { return table_data_.Subregion(offset, NumColumnBits(column)); } - size_t NumRows() const { return num_rows_; } + uint32_t NumRows() const { return num_rows_; } uint32_t NumRowBits() const { return column_offset_[kNumColumns]; } - constexpr size_t NumColumns() const { return kNumColumns; } + constexpr uint32_t NumColumns() const { return kNumColumns; } uint32_t NumColumnBits(uint32_t column) const { return column_offset_[column + 1] - column_offset_[column]; @@ -97,7 +97,7 @@ class BitTableBase { protected: BitMemoryRegion table_data_; - size_t num_rows_ = 0; + uint32_t num_rows_ = 0; uint16_t column_offset_[kNumColumns + 1] = {}; }; |