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:
574758e
)
Using the correct time for wait_start_ms when lock contention logging is enabled
author
Xin Guan
<a18772@motorola.com>
Fri, 22 Aug 2014 16:55:37 +0000
(11:55 -0500)
committer
Ian Rogers
<irogers@google.com>
Fri, 22 Aug 2014 20:46:11 +0000
(13:46 -0700)
Bug:
17208457
Change-Id: I35555e0acf3b37bb3776a62c64d59ae93403b237
runtime/monitor.cc
patch
|
blob
|
history
diff --git
a/runtime/monitor.cc
b/runtime/monitor.cc
index
107efd7
..
0b6e3b2
100644
(file)
--- a/
runtime/monitor.cc
+++ b/
runtime/monitor.cc
@@
-246,7
+246,7
@@
void Monitor::Lock(Thread* self) {
}
// Contended.
const bool log_contention = (lock_profiling_threshold_ != 0);
- uint64_t wait_start_ms = log_contention ?
0 : MilliTime()
;
+ uint64_t wait_start_ms = log_contention ?
MilliTime() : 0
;
mirror::ArtMethod* owners_method = locking_method_;
uint32_t owners_dex_pc = locking_dex_pc_;
// Do this before releasing the lock so that we don't get deflated.