Fix force copy
We now correctly pass the returned pointer back onto the release functions.
Bug: 22056708
Change-Id: I1a7300d3a4522a3c81b432ec742ae1c0bd00b51e
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc
index f0ba0bd..f19cfcb 100644
--- a/runtime/gc/heap.cc
+++ b/runtime/gc/heap.cc
@@ -746,7 +746,7 @@
void Heap::DecrementDisableMovingGC(Thread* self) {
MutexLock mu(self, *gc_complete_lock_);
- CHECK_GE(disable_moving_gc_count_, 0U);
+ CHECK_GT(disable_moving_gc_count_, 0U);
--disable_moving_gc_count_;
}