summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2013-10-02 12:44:17 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2013-10-02 13:34:17 -0700
commit253ea073ec03a0be1e22df98957257594e316a39 (patch)
tree804fbc5b00ef7d0b399aa70960793ce5b50eb2ae /runtime/runtime.cc
parent7ef126ce0593929bcf8fb73d8b1119ce3b95b3f2 (diff)
downloadart-253ea073ec03a0be1e22df98957257594e316a39.zip
art-253ea073ec03a0be1e22df98957257594e316a39.tar.gz
art-253ea073ec03a0be1e22df98957257594e316a39.tar.bz2
Fix an Art debug build boot failure.
(The original change is 3b4c18933c24b8a33f38573c2ebcdb9aa16efeb5.) Bug: 11003273 Bug: 9986565 Change-Id: Iaaf6395f171eb6e6b8c99386c20c4970c53ee00d
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index b4ce37f..17455dc 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1299,7 +1299,7 @@ void Runtime::InstrumentQuickAllocEntryPoints() {
{
MutexLock mu(self, *Locks::runtime_shutdown_lock_);
MutexLock mu2(self, *Locks::thread_list_lock_);
- DCHECK_LE(quick_alloc_entry_points_instrumentation_counter_, 0);
+ DCHECK_GE(quick_alloc_entry_points_instrumentation_counter_, 0);
int old_counter = quick_alloc_entry_points_instrumentation_counter_++;
if (old_counter == 0) {
// If it was disabled, enable it.
@@ -1317,7 +1317,7 @@ void Runtime::UninstrumentQuickAllocEntryPoints() {
{
MutexLock mu(self, *Locks::runtime_shutdown_lock_);
MutexLock mu2(self, *Locks::thread_list_lock_);
- DCHECK_LT(quick_alloc_entry_points_instrumentation_counter_, 0);
+ DCHECK_GT(quick_alloc_entry_points_instrumentation_counter_, 0);
int new_counter = --quick_alloc_entry_points_instrumentation_counter_;
if (new_counter == 0) {
// Disable it if the counter becomes zero.