Fix error in JobjectComparator
Was comparing class hash code vs object hash code.
Change-Id: I6427809876462100249809b6f9c5e996c0741cf1
diff --git a/runtime/jobject_comparator.cc b/runtime/jobject_comparator.cc
index e22d75f..77f93ff 100644
--- a/runtime/jobject_comparator.cc
+++ b/runtime/jobject_comparator.cc
@@ -40,7 +40,7 @@
}
// Sort by class...
if (obj1->GetClass() != obj2->GetClass()) {
- return obj1->GetClass()->IdentityHashCode() < obj2->IdentityHashCode();
+ return obj1->GetClass()->IdentityHashCode() < obj2->GetClass()->IdentityHashCode();
} else {
// ...then by size...
size_t count1 = obj1->SizeOf();