8271406: Kitchensink failed with "assert(early->flag() == current->flag()) failed: Should be the same"

Reviewed-by: coleenp, dholmes, stuefe
This commit is contained in:
Zhengyu Gu 2022-05-27 12:16:04 +00:00
parent be93318576
commit f2bc447659

@ -793,7 +793,8 @@ void MemDetailDiffReporter::old_virtual_memory_site(const VirtualMemoryAllocatio
void MemDetailDiffReporter::diff_virtual_memory_site(const VirtualMemoryAllocationSite* early,
const VirtualMemoryAllocationSite* current) const {
assert(early->flag() == current->flag(), "Should be the same");
assert(early->flag() == current->flag() || early->flag() == mtNone,
"Expect the same flag, but %s != %s", NMTUtil::flag_to_name(early->flag()),NMTUtil::flag_to_name(current->flag()));
diff_virtual_memory_site(current->call_stack(), current->reserved(), current->committed(),
early->reserved(), early->committed(), current->flag());
}