diff options
author | 2023-09-28 18:01:33 +0100 | |
---|---|---|
committer | 2023-11-30 00:02:56 +0000 | |
commit | 54417d2c7e5254f8941119f8f16476c1a45e028a (patch) | |
tree | 1f4b82cbaa3df28f62624cefdf7cdf57b6370959 /dex2oat/common_compiler_driver_test.cc | |
parent | 565b3b67de4b3b781b1c97aa86164c1bd604cd3d (diff) |
Use globals naming scheme for kPageSize etc.
This patch is part of the chain preparing for making kPageSize
non-constexpr in a future patch.
The following values aren't always constexpr anymore - in some
configurations these are global dynamically initialized constants.
Rename them accordingly:
- kPageSize to gPageSize;
- kPMDSize to gPMDSize;
- kPUDSize to gPUDSize;
- kNumLrtSlots to gNumLrtSlots;
- kStackOverflowProtectedSize to gStackOverflowProtectedSize.
Also fix the typo in the kMininumMapSize identifier.
Test: Same as for I5430741a8494b340ed7fd2d8692c41a59ad9c530.
The whole patches chain was tested as a whole.
Change-Id: Ic8502aa66d75d2bbba698282a1eaf1a029b02d3a
Diffstat (limited to 'dex2oat/common_compiler_driver_test.cc')
-rw-r--r-- | dex2oat/common_compiler_driver_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dex2oat/common_compiler_driver_test.cc b/dex2oat/common_compiler_driver_test.cc index 7a1d11c298..d47982f54a 100644 --- a/dex2oat/common_compiler_driver_test.cc +++ b/dex2oat/common_compiler_driver_test.cc @@ -111,13 +111,13 @@ void CommonCompilerDriverTest::SetUp() { // Note: We cannot use MemMap because some tests tear down the Runtime and destroy // the gMaps, so when destroying the MemMap, the test would crash. - inaccessible_page_ = mmap(nullptr, kPageSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); + inaccessible_page_ = mmap(nullptr, gPageSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); CHECK(inaccessible_page_ != MAP_FAILED) << strerror(errno); } void CommonCompilerDriverTest::TearDown() { if (inaccessible_page_ != nullptr) { - munmap(inaccessible_page_, kPageSize); + munmap(inaccessible_page_, gPageSize); inaccessible_page_ = nullptr; } image_reservation_.Reset(); |