diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2013-10-03 00:46:35 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-10-03 00:46:36 +0000 |
commit | 9f69b62e6b009b29e6420c49e7444e91466a6a33 (patch) | |
tree | 945a8b95c9b32f76aa71b0de951cff2aa52cdc25 /runtime/runtime.cc | |
parent | 49fddff6f0e9628de419a2d911b5dcc393626f6e (diff) | |
parent | 253ea073ec03a0be1e22df98957257594e316a39 (diff) | |
download | art-9f69b62e6b009b29e6420c49e7444e91466a6a33.zip art-9f69b62e6b009b29e6420c49e7444e91466a6a33.tar.gz art-9f69b62e6b009b29e6420c49e7444e91466a6a33.tar.bz2 |
Merge "Fix an Art debug build boot failure." into dalvik-dev
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 8a20bbc..a936baa 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -1307,7 +1307,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. @@ -1325,7 +1325,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. |