The concurrent mark sweep collector (concurrent mark-sweep collector, concurrent collector or CMS)
was a
mark-and-sweep garbage collector in the
Oracle
An oracle is a person or thing considered to provide insight, wise counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. If done through occultic means, it is a form of divination.
Descript ...
HotSpot Java virtual machine
A Java virtual machine (JVM) is a virtual machine that enables a computer to run Java programs as well as programs written in other languages that are also compiled to Java bytecode. The JVM is detailed by a specification that formally descr ...
(JVM) available since version 1.4.1. It was deprecated on version 9 and removed on version 14, so from Java 15 it is no longer available.
HotSpot garbage collectors
The HotSpot JVM selects the default garbage collector based on several factors. The newer
Garbage-First collector (G1) was planned to replace CMS. That change was finally done in version 9.
To launch the JVM with this garbage collector you can add this property to the java
command line -XX:+UseConcMarkSweepGC
when using Java version less than 14.
See also
*
List of Java virtual machines
References
Automatic memory management
Java virtual machine
Memory management algorithms
{{Compu-stub