OSDN Git Service

Pass the real capacity to CreateRosAlloc.
authorHiroshi Yamauchi <yamauchi@google.com>
Fri, 19 Dec 2014 05:19:24 +0000 (21:19 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Fri, 19 Dec 2014 05:19:24 +0000 (21:19 -0800)
Bug: 18808732
Change-Id: Id563eb22e8d571c0ef032628b6ba2f3d357fd002

runtime/gc/space/rosalloc_space.cc

index 74d1a2b..ced25a4 100644 (file)
@@ -365,8 +365,9 @@ void RosAllocSpace::Clear() {
   mark_bitmap_->Clear();
   SetEnd(begin_ + starting_size_);
   delete rosalloc_;
-  rosalloc_ = CreateRosAlloc(mem_map_->Begin(), starting_size_, initial_size_, Capacity(),
-                             low_memory_mode_, Runtime::Current()->RunningOnValgrind());
+  rosalloc_ = CreateRosAlloc(mem_map_->Begin(), starting_size_, initial_size_,
+                             NonGrowthLimitCapacity(), low_memory_mode_,
+                             Runtime::Current()->RunningOnValgrind());
   SetFootprintLimit(footprint_limit);
 }