summaryrefslogtreecommitdiffstats
path: root/runtime/jobject_comparator.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-01-12 14:24:14 -0800
committerMathieu Chartier <mathieuc@google.com>2015-01-12 14:24:14 -0800
commit3096bc5d80a609c5e1c80ce64eeb6f3299ee4012 (patch)
tree5cb123240adeb402cf8384f5563d15bd2ae5f31b /runtime/jobject_comparator.cc
parent1de532495b2669ce4fae9b9d20848d78d83813d8 (diff)
downloadart-3096bc5d80a609c5e1c80ce64eeb6f3299ee4012.tar.gz
art-3096bc5d80a609c5e1c80ce64eeb6f3299ee4012.tar.bz2
art-3096bc5d80a609c5e1c80ce64eeb6f3299ee4012.zip
Fix error in JobjectComparator
Was comparing class hash code vs object hash code. Change-Id: I6427809876462100249809b6f9c5e996c0741cf1
Diffstat (limited to 'runtime/jobject_comparator.cc')
-rw-r--r--runtime/jobject_comparator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jobject_comparator.cc b/runtime/jobject_comparator.cc
index e22d75f941..77f93ffa70 100644
--- a/runtime/jobject_comparator.cc
+++ b/runtime/jobject_comparator.cc
@@ -40,7 +40,7 @@ bool JobjectComparator::operator()(jobject jobj1, jobject jobj2) const {
}
// 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();