Skip to content

Commit f2bc447

Browse files
committedMay 27, 2022
8271406: Kitchensink failed with "assert(early->flag() == current->flag()) failed: Should be the same"
Reviewed-by: coleenp, dholmes, stuefe
1 parent be93318 commit f2bc447

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/hotspot/share/services/memReporter.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,8 @@ void MemDetailDiffReporter::old_virtual_memory_site(const VirtualMemoryAllocatio
793793

794794
void MemDetailDiffReporter::diff_virtual_memory_site(const VirtualMemoryAllocationSite* early,
795795
const VirtualMemoryAllocationSite* current) const {
796-
assert(early->flag() == current->flag(), "Should be the same");
796+
assert(early->flag() == current->flag() || early->flag() == mtNone,
797+
"Expect the same flag, but %s != %s", NMTUtil::flag_to_name(early->flag()),NMTUtil::flag_to_name(current->flag()));
797798
diff_virtual_memory_site(current->call_stack(), current->reserved(), current->committed(),
798799
early->reserved(), early->committed(), current->flag());
799800
}

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on May 27, 2022

@openjdk-notifier[bot]
Please sign in to comment.