Skip to content
Snippets Groups Projects
Commit d90d0288 authored by Andreas Steiner's avatar Andreas Steiner Committed by Martin Doerr
Browse files

8318089: Class space not marked as such with NMT when CDS is off

Reviewed-by: stuefe
Backport-of: c0e154c876e586660b36af6441cd178bc8ebab89
parent 5e0e2e3e
No related branches found
No related tags found
No related merge requests found
......@@ -566,12 +566,6 @@ void Metaspace::initialize_class_space(ReservedSpace rs) {
"wrong alignment");
MetaspaceContext::initialize_class_space_context(rs);
// This does currently not work because rs may be the result of a split
// operation and NMT seems not to be able to handle splits.
// Will be fixed with JDK-8243535.
// MemTracker::record_virtual_memory_type((address)rs.base(), mtClass);
}
// Returns true if class space has been setup (initialize_class_space).
......@@ -840,6 +834,9 @@ void Metaspace::global_initialize() {
CompressedClassSpaceSize));
}
// Mark class space as such
MemTracker::record_virtual_memory_type((address)rs.base(), mtClass);
// Initialize space
Metaspace::initialize_class_space(rs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment