--- a/src/hotspot/share/gc/shared/gcVMOperations.cpp Wed Nov 13 11:21:15 2019 +0100
+++ b/src/hotspot/share/gc/shared/gcVMOperations.cpp Wed Nov 13 11:37:29 2019 +0100
@@ -192,13 +192,6 @@
// Returns true iff concurrent GCs unloads metadata.
bool VM_CollectForMetadataAllocation::initiate_concurrent_GC() {
-#if INCLUDE_CMSGC
- if (UseConcMarkSweepGC && CMSClassUnloadingEnabled) {
- MetaspaceGC::set_should_concurrent_collect(true);
- return true;
- }
-#endif
-
#if INCLUDE_G1GC
if (UseG1GC && ClassUnloadingWithConcurrentMark) {
G1CollectedHeap* g1h = G1CollectedHeap::heap();
@@ -238,13 +231,13 @@
}
if (initiate_concurrent_GC()) {
- // For CMS and G1 expand since the collection is going to be concurrent.
+ // For G1 expand since the collection is going to be concurrent.
_result = _loader_data->metaspace_non_null()->expand_and_allocate(_size, _mdtype);
if (_result != NULL) {
return;
}
- log_debug(gc)("%s full GC for Metaspace", UseConcMarkSweepGC ? "CMS" : "G1");
+ log_debug(gc)("G1 full GC for Metaspace");
}
// Don't clear the soft refs yet.