OSDN Git Service

Pass the real capacity to CreateRosAlloc.
authorHiroshi Yamauchi <yamauchi@google.com>
Sat, 20 Dec 2014 00:02:07 +0000 (16:02 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Sat, 20 Dec 2014 00:02:07 +0000 (16:02 -0800)
(cherrypick commit 94c41dfcaf4bc131964ddd3013432841b07c3839)

Bug: 18808732
Change-Id: Id65469c3deb70c9f750f89cf0e7606849b801a21

runtime/gc/space/rosalloc_space.cc

index 92c6f53..518e8c0 100644 (file)
@@ -351,8 +351,8 @@ 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_);
+  rosalloc_ = CreateRosAlloc(mem_map_->Begin(), starting_size_, initial_size_,
+                             NonGrowthLimitCapacity(), low_memory_mode_);
   SetFootprintLimit(footprint_limit);
 }