OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
193c7a9
)
Pass the real capacity to CreateRosAlloc.
author
Hiroshi Yamauchi
<yamauchi@google.com>
Fri, 19 Dec 2014 05:19:24 +0000
(21:19 -0800)
committer
Hiroshi 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
patch
|
blob
|
history
diff --git
a/runtime/gc/space/rosalloc_space.cc
b/runtime/gc/space/rosalloc_space.cc
index
74d1a2b
..
ced25a4
100644
(file)
--- 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);
}