diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2014-12-18 21:19:24 -0800 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2014-12-18 21:19:24 -0800 |
commit | 94c41dfcaf4bc131964ddd3013432841b07c3839 (patch) | |
tree | 59a8c8d45d5eb3abb40fea8b45141f5e5409f8fe | |
parent | 193c7a94822f765b0b6b0cecd54c9f08dfd26425 (diff) | |
download | art-94c41dfcaf4bc131964ddd3013432841b07c3839.zip art-94c41dfcaf4bc131964ddd3013432841b07c3839.tar.gz art-94c41dfcaf4bc131964ddd3013432841b07c3839.tar.bz2 |
Pass the real capacity to CreateRosAlloc.
Bug: 18808732
Change-Id: Id563eb22e8d571c0ef032628b6ba2f3d357fd002
-rw-r--r-- | runtime/gc/space/rosalloc_space.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/gc/space/rosalloc_space.cc b/runtime/gc/space/rosalloc_space.cc index 74d1a2b..ced25a4 100644 --- a/runtime/gc/space/rosalloc_space.cc +++ b/runtime/gc/space/rosalloc_space.cc @@ -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); } |