diff options
author | 2023-09-28 18:01:33 +0100 | |
---|---|---|
committer | 2023-11-30 00:02:56 +0000 | |
commit | 54417d2c7e5254f8941119f8f16476c1a45e028a (patch) | |
tree | 1f4b82cbaa3df28f62624cefdf7cdf57b6370959 /compiler/jit/jit_logger.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 'compiler/jit/jit_logger.cc')
-rw-r--r-- | compiler/jit/jit_logger.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/jit/jit_logger.cc b/compiler/jit/jit_logger.cc index 32845260f3..c50103df9c 100644 --- a/compiler/jit/jit_logger.cc +++ b/compiler/jit/jit_logger.cc @@ -211,7 +211,7 @@ void JitLogger::OpenMarkerFile() { int fd = jit_dump_file_->Fd(); // The 'perf inject' tool requires that the jit-PID.dump file // must have a mmap(PROT_READ|PROT_EXEC) record in perf.data. - marker_address_ = mmap(nullptr, kPageSize, PROT_READ | PROT_EXEC, MAP_PRIVATE, fd, 0); + marker_address_ = mmap(nullptr, gPageSize, PROT_READ | PROT_EXEC, MAP_PRIVATE, fd, 0); if (marker_address_ == MAP_FAILED) { LOG(WARNING) << "Failed to create record in perf.data. JITed code profiling will not work."; return; @@ -220,7 +220,7 @@ void JitLogger::OpenMarkerFile() { void JitLogger::CloseMarkerFile() { if (marker_address_ != nullptr) { - munmap(marker_address_, kPageSize); + munmap(marker_address_, gPageSize); } } |