提交 b58874c3 编写于 作者: Z zgu

8011760: assert(delta != 0) failed: dup pointer in MemBaseline::malloc_sort_by_addr

Summary: Some of qsort implementation on Linux x86 compares element to itself, which is  mistakenly treated as duplicate pointer
Reviewed-by: dcubed, acorn
上级 09270d49
......@@ -486,7 +486,7 @@ int MemBaseline::malloc_sort_by_addr(const void* p1, const void* p2) {
const MemPointerRecord* mp1 = (const MemPointerRecord*)p1;
const MemPointerRecord* mp2 = (const MemPointerRecord*)p2;
int delta = UNSIGNED_COMPARE(mp1->addr(), mp2->addr());
assert(delta != 0, "dup pointer");
assert(p1 == p2 || delta != 0, "dup pointer");
return delta;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册