diff options
author | Mark Mendell <mark.p.mendell@intel.com> | 2013-12-11 12:27:35 -0800 |
---|---|---|
committer | Mark Mendell <mark.p.mendell@intel.com> | 2013-12-11 12:40:13 -0800 |
commit | 45c1165558eb8f9c81843b63ed362079a60c8387 (patch) | |
tree | 2ad5839a44113fc41369658f422d4ae093463e3a | |
parent | e11eb154b52e2036d775c2df491a70bf7ef04de3 (diff) | |
download | art-45c1165558eb8f9c81843b63ed362079a60c8387.zip art-45c1165558eb8f9c81843b63ed362079a60c8387.tar.gz art-45c1165558eb8f9c81843b63ed362079a60c8387.tar.bz2 |
Define missing static constexpr variables
This will prevent link errors when undefined symbols when compiling at
-O0. Normally, this isn't a problem, but causes failure when compiling
at -O0 to maximize debugability
Change-Id: Iafe187b6b9344fead1bbc73004e376fad821756b
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
-rw-r--r-- | compiler/dex/arena_allocator.cc | 1 | ||||
-rw-r--r-- | compiler/dex/quick/dex_file_method_inliner.cc | 1 | ||||
-rw-r--r-- | runtime/base/timing_logger.cc | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/compiler/dex/arena_allocator.cc b/compiler/dex/arena_allocator.cc index 95e44b3..132831c 100644 --- a/compiler/dex/arena_allocator.cc +++ b/compiler/dex/arena_allocator.cc @@ -28,6 +28,7 @@ namespace art { static constexpr bool kUseMemMap = false; static constexpr bool kUseMemSet = true && kUseMemMap; static constexpr size_t kValgrindRedZoneBytes = 8; +constexpr size_t Arena::kDefaultSize; static const char* alloc_names[ArenaAllocator::kNumAllocKinds] = { "Misc ", diff --git a/compiler/dex/quick/dex_file_method_inliner.cc b/compiler/dex/quick/dex_file_method_inliner.cc index fb471ab..b21e37e 100644 --- a/compiler/dex/quick/dex_file_method_inliner.cc +++ b/compiler/dex/quick/dex_file_method_inliner.cc @@ -22,6 +22,7 @@ namespace art { +const uint32_t DexFileMethodInliner::kIndexUnresolved; const char* DexFileMethodInliner::kClassCacheNames[] = { "Z", // kClassCacheBoolean "B", // kClassCacheByte diff --git a/runtime/base/timing_logger.cc b/runtime/base/timing_logger.cc index c8dee6d..076bc11 100644 --- a/runtime/base/timing_logger.cc +++ b/runtime/base/timing_logger.cc @@ -31,6 +31,8 @@ namespace art { +constexpr size_t CumulativeLogger::kLowMemoryBucketCount; +constexpr size_t CumulativeLogger::kDefaultBucketCount; CumulativeLogger::CumulativeLogger(const std::string& name) : name_(name), lock_name_("CumulativeLoggerLock" + name), |