diff options
Diffstat (limited to 'runtime/gc')
-rw-r--r-- | runtime/gc/allocator/dlmalloc.cc | 6 | ||||
-rw-r--r-- | runtime/gc/allocator/rosalloc.cc | 1 | ||||
-rw-r--r-- | runtime/gc/collector/garbage_collector.cc | 3 | ||||
-rw-r--r-- | runtime/gc/collector/semi_space.cc | 3 | ||||
-rw-r--r-- | runtime/gc/heap.cc | 3 | ||||
-rw-r--r-- | runtime/gc/space/image_space.cc | 1 |
6 files changed, 11 insertions, 6 deletions
diff --git a/runtime/gc/allocator/dlmalloc.cc b/runtime/gc/allocator/dlmalloc.cc index a6a3ee7a57..fbeba7f447 100644 --- a/runtime/gc/allocator/dlmalloc.cc +++ b/runtime/gc/allocator/dlmalloc.cc @@ -39,11 +39,11 @@ static void art_heap_usage_error(const char* function, void* p); static void art_heap_corruption(const char* function) { - LOG(FATAL) << "Corrupt heap detected in: " << function; + LOG(::art::FATAL) << "Corrupt heap detected in: " << function; } static void art_heap_usage_error(const char* function, void* p) { - LOG(FATAL) << "Incorrect use of function '" << function << "' argument " << p << " not expected"; + LOG(::art::FATAL) << "Incorrect use of function '" << function << "' argument " << p << " not expected"; } #include "globals.h" @@ -63,7 +63,7 @@ extern "C" void DlmallocMadviseCallback(void* start, void* end, size_t used_byte int rc = madvise(start, length, MADV_DONTNEED); if (UNLIKELY(rc != 0)) { errno = rc; - PLOG(FATAL) << "madvise failed during heap trimming"; + PLOG(::art::FATAL) << "madvise failed during heap trimming"; } size_t* reclaimed = reinterpret_cast<size_t*>(arg); *reclaimed += length; diff --git a/runtime/gc/allocator/rosalloc.cc b/runtime/gc/allocator/rosalloc.cc index a3da532ec8..804c98a99f 100644 --- a/runtime/gc/allocator/rosalloc.cc +++ b/runtime/gc/allocator/rosalloc.cc @@ -24,6 +24,7 @@ #include <map> #include <list> +#include <sstream> #include <vector> namespace art { diff --git a/runtime/gc/collector/garbage_collector.cc b/runtime/gc/collector/garbage_collector.cc index 07b61e6cf0..4148e9c0b9 100644 --- a/runtime/gc/collector/garbage_collector.cc +++ b/runtime/gc/collector/garbage_collector.cc @@ -18,6 +18,7 @@ #include "garbage_collector.h" +#include "base/dumpable.h" #include "base/histogram-inl.h" #include "base/logging.h" #include "base/mutex-inl.h" @@ -188,7 +189,7 @@ void GarbageCollector::DumpPerformanceInfo(std::ostream& os) { if (iterations == 0) { return; } - os << ConstDumpable<CumulativeLogger>(logger); + os << Dumpable<CumulativeLogger>(logger); const uint64_t total_ns = logger.GetTotalNs(); double seconds = NsToMs(logger.GetTotalNs()) / 1000.0; const uint64_t freed_bytes = GetTotalFreedBytes(); diff --git a/runtime/gc/collector/semi_space.cc b/runtime/gc/collector/semi_space.cc index 9459a3b829..e141b6f4ab 100644 --- a/runtime/gc/collector/semi_space.cc +++ b/runtime/gc/collector/semi_space.cc @@ -16,9 +16,10 @@ #include "semi_space-inl.h" +#include <climits> #include <functional> #include <numeric> -#include <climits> +#include <sstream> #include <vector> #include "base/logging.h" diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc index b9d69d55c7..c2baa29f61 100644 --- a/runtime/gc/heap.cc +++ b/runtime/gc/heap.cc @@ -24,6 +24,7 @@ #include <vector> #include "base/allocator.h" +#include "base/dumpable.h" #include "base/histogram-inl.h" #include "base/stl_util.h" #include "common_throws.h" @@ -2178,7 +2179,7 @@ collector::GcType Heap::CollectGarbageInternal(collector::GcType gc_type, GcCaus << percent_free << "% free, " << PrettySize(current_heap_size) << "/" << PrettySize(total_memory) << ", " << "paused " << pause_string.str() << " total " << PrettyDuration((duration / 1000) * 1000); - VLOG(heap) << ConstDumpable<TimingLogger>(*current_gc_iteration_.GetTimings()); + VLOG(heap) << Dumpable<TimingLogger>(*current_gc_iteration_.GetTimings()); } FinishGC(self, gc_type); // Inform DDMS that a GC completed. diff --git a/runtime/gc/space/image_space.cc b/runtime/gc/space/image_space.cc index 39d82cc8a3..d4790385d1 100644 --- a/runtime/gc/space/image_space.cc +++ b/runtime/gc/space/image_space.cc @@ -21,6 +21,7 @@ #include <random> +#include "base/macros.h" #include "base/stl_util.h" #include "base/unix_file/fd_file.h" #include "base/scoped_flock.h" |