summaryrefslogtreecommitdiff
path: root/runtime/jni/local_reference_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jni/local_reference_table.cc')
-rw-r--r--runtime/jni/local_reference_table.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/jni/local_reference_table.cc b/runtime/jni/local_reference_table.cc
index 73d37a2502..93ad671655 100644
--- a/runtime/jni/local_reference_table.cc
+++ b/runtime/jni/local_reference_table.cc
@@ -41,7 +41,8 @@ static constexpr bool kDumpStackOnNonLocalReference = false;
static constexpr bool kDebugLRT = false;
// Number of free lists in the allocator.
-static const size_t gNumLrtSlots = WhichPowerOf2(gPageSize / kInitialLrtBytes);
+ART_PAGE_SIZE_AGNOSTIC_DECLARE_AND_DEFINE(size_t, gNumLrtSlots,
+ WhichPowerOf2(gPageSize / kInitialLrtBytes));
// Mmap an "indirect ref table region. Table_bytes is a multiple of a page size.
static inline MemMap NewLRTMap(size_t table_bytes, std::string* error_msg) {