Skip to content

Commit 5545aa0

Browse files
committedJul 10, 2024
Add option to omit archive heap verification
Signed-off-by: Ashutosh Mehra <asmehra@redhat.com>
1 parent f65cccf commit 5545aa0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎src/hotspot/share/cds/cds_globals.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
\
154154
product(bool, VerifyTrainingData, trueInDebug, DIAGNOSTIC, \
155155
"Verify archived training data") \
156+
\
157+
product(bool, SkipArchiveHeapVerification, false, \
158+
"Skip verification of CDS archive heap") \
156159

157160
// end of CDS_FLAGS
158161

‎src/hotspot/share/cds/heapShared.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,9 @@ void HeapShared::archive_objects(ArchiveHeapInfo *heap_info) {
853853
}
854854
copy_objects();
855855

856-
CDSHeapVerifier::verify();
856+
if (!SkipArchiveHeapVerification) {
857+
CDSHeapVerifier::verify();
858+
}
857859
check_default_subgraph_classes();
858860
}
859861

0 commit comments

Comments
 (0)