Fix an Art debug build boot failure.
(The original change is 3b4c18933c24b8a33f38573c2ebcdb9aa16efeb5.)
Bug: 11003273
Bug: 9986565
Change-Id: Iaaf6395f171eb6e6b8c99386c20c4970c53ee00d
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 @@
{
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 @@
{
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.