Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8056649 | emb-9 | Unassigned | P2 | Resolved | Fixed | b25 |
JDK-8063564 | 8u45 | Stefan Karlsson | P2 | Resolved | Fixed | b01 |
JDK-8049856 | 8u40 | Stefan Karlsson | P2 | Closed | Fixed | b02 |
JDK-8070844 | emb-8u47 | Stefan Karlsson | P2 | Resolved | Fixed | team |
The suggested fix is to not allow the increase of the high water mark and the allocation if CMSClassUnloadingEnabled is turned off.
This is the suggested fix for JDK 8 and pre-G1 Class Unloading JDK 9 code:
diff -r 3976a725c192 src/share/vm/gc_implementation/shared/vmGCOperations.cpp
--- a/src/share/vm/gc_implementation/shared/vmGCOperations.cpp Mon Jul 07 10:18:33 2014 +0200
+++ b/src/share/vm/gc_implementation/shared/vmGCOperations.cpp Thu Jul 10 09:47:33 2014 +0200
@@ -212,10 +212,10 @@
if (UseConcMarkSweepGC) {
if (CMSClassUnloadingEnabled) {
MetaspaceGC::set_should_concurrent_collect(true);
+ // For CMS expand since the collection is going to be concurrent.
+ _result =
+ _loader_data->metaspace_non_null()->expand_and_allocate(_size, _mdtype);
}
- // For CMS expand since the collection is going to be concurrent.
- _result =
- _loader_data->metaspace_non_null()->expand_and_allocate(_size, _mdtype);
}
if (_result == NULL) {
// Don't clear the soft refs yet.
This code was refactored in the G1 Class Unloading changes, but the problem still exists there.
- backported by
-
JDK-8056649 Metadata Full GCs are not triggered when CMSClassUnloadingEnabled is turned off
-
- Resolved
-
-
JDK-8063564 Metadata Full GCs are not triggered when CMSClassUnloadingEnabled is turned off
-
- Resolved
-
-
JDK-8070844 Metadata Full GCs are not triggered when CMSClassUnloadingEnabled is turned off
-
- Resolved
-
-
JDK-8049856 Metadata Full GCs are not triggered when CMSClassUnloadingEnabled is turned off
-
- Closed
-
-
JDK-8054416 Metadata Full GCs are not triggered when CMSClassUnloadingEnabled is turned off
-
- Closed
-
- relates to
-
JDK-8051883 TEST.groups references missing test: gc/class_unloading/TestCMSClassUnloadingDisabledHWM.java
-
- Resolved
-