summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
author Ruben Ayrapetyan <ruben.ayrapetyan@arm.com> 2023-09-28 18:01:33 +0100
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-11-30 00:02:56 +0000
commit54417d2c7e5254f8941119f8f16476c1a45e028a (patch)
tree1f4b82cbaa3df28f62624cefdf7cdf57b6370959 /compiler/common_compiler_test.cc
parent565b3b67de4b3b781b1c97aa86164c1bd604cd3d (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 'compiler/common_compiler_test.cc')
-rw-r--r--compiler/common_compiler_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc
index 676f591c28..206020fa82 100644
--- a/compiler/common_compiler_test.cc
+++ b/compiler/common_compiler_test.cc
@@ -57,9 +57,9 @@ class CommonCompilerTestImpl::CodeAndMetadata {
: sizeof(OatQuickMethodHeader) + vmap_table.size();
OatQuickMethodHeader method_header(vmap_table_offset);
const size_t code_alignment = GetInstructionSetCodeAlignment(instruction_set);
- DCHECK_ALIGNED_PARAM(kPageSize, code_alignment);
+ DCHECK_ALIGNED_PARAM(gPageSize, code_alignment);
const uint32_t code_offset = RoundUp(vmap_table.size() + sizeof(method_header), code_alignment);
- const uint32_t capacity = RoundUp(code_offset + code_size, kPageSize);
+ const uint32_t capacity = RoundUp(code_offset + code_size, gPageSize);
// Create a memfd handle with sufficient capacity.
android::base::unique_fd mem_fd(art::memfd_create_compat("test code", /*flags=*/ 0));