OSDN Git Service
(root)
/
android-x86
/
dalvik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dfee8b
)
Fix reporting of initial pause time
author
Andy McFadden
<fadden@android.com>
Tue, 8 Nov 2011 00:20:51 +0000
(16:20 -0800)
committer
Andy McFadden
<fadden@android.com>
Tue, 8 Nov 2011 00:20:51 +0000
(16:20 -0800)
The "rootEnd" time was being captured before dvmClearCardTable()
was called.
Bug
5567332
Change-Id: I5499f1648c3e41296c18fa5d95d834c2d2853e8f
vm/alloc/Heap.cpp
patch
|
blob
|
history
diff --git
a/vm/alloc/Heap.cpp
b/vm/alloc/Heap.cpp
index
9eee817
..
4043840
100644
(file)
--- a/
vm/alloc/Heap.cpp
+++ b/
vm/alloc/Heap.cpp
@@
-516,8
+516,8
@@
void dvmCollectGarbageInternal(const GcSpec* spec)
* Resume threads while tracing from the roots. We unlock the
* heap to allow mutator threads to allocate from free space.
*/
- rootEnd = dvmGetRelativeTimeMsec();
dvmClearCardTable();
+ rootEnd = dvmGetRelativeTimeMsec();
dvmUnlockHeap();
dvmResumeAllThreads(SUSPEND_FOR_GC);
}