diff --git a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeapName.java b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeapName.java index f6f63bd99ec..b0c0125efe8 100644 --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeapName.java +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeapName.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -33,7 +33,6 @@ public class CollectedHeapName { public static final CollectedHeapName SERIAL = new CollectedHeapName("Serial"); public static final CollectedHeapName PARALLEL = new CollectedHeapName("Parallel"); - public static final CollectedHeapName CMS = new CollectedHeapName("CMS"); public static final CollectedHeapName G1 = new CollectedHeapName("G1"); public static final CollectedHeapName EPSILON = new CollectedHeapName("Epsilon"); public static final CollectedHeapName Z = new CollectedHeapName("Z"); diff --git a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java index 93aed2031e2..5bed5831259 100644 --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/GCCause.java @@ -46,11 +46,6 @@ public enum GCCause { _metadata_GC_threshold ("Metadata GC Threshold"), _metadata_GC_clear_soft_refs ("Metadata GC Clear Soft References"), - _cms_generation_full ("CMS Generation Full"), - _cms_initial_mark ("CMS Initial Mark"), - _cms_final_remark ("CMS Final Remark"), - _cms_concurrent_mark ("CMS Concurrent Mark"), - _old_generation_expanded_on_last_scavenge ("Old Generation Expanded On Last Scavenge"), _old_generation_too_full_to_scavenge ("Old Generation Too Full To Scavenge"), _adaptive_size_policy ("Ergonomics"), diff --git a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/Generation.java b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/Generation.java index 8b312e9be89..e9854c3d683 100644 --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/Generation.java +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/Generation.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -57,7 +57,6 @@ public abstract class Generation extends VMObject { private static int NAME_DEF_NEW; private static int NAME_PAR_NEW; private static int NAME_MARK_SWEEP_COMPACT; - private static int NAME_CONCURRENT_MARK_SWEEP; private static int NAME_OTHER; static { diff --git a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/Mark.java b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/Mark.java index 31f56fbf0bc..7512257a197 100644 --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/Mark.java +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/Mark.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -102,11 +102,6 @@ public class Mark extends VMObject { private static long maxAge; - /* Constants in markWord used by CMS. */ - private static long cmsShift; - private static long cmsMask; - private static long sizeShift; - public Mark(Address addr) { super(addr); } @@ -202,5 +197,5 @@ public class Mark extends VMObject { } } - public long getSize() { return (long)(value() >> sizeShift); } + public long getSize() { return (long)value(); } }