Concurrent mark sweep collector
   HOME

TheInfoList



OR:

The concurrent mark sweep collector (concurrent mark-sweep collector, concurrent collector or CMS) was a mark-and-sweep
garbage collector A waste collector, also known as a garbageman, garbage collector, trashman (in the US), binman or (rarely) dustman (in the UK), is a person employed by a public or private enterprise to collect and dispose of municipal solid waste (refuse) and ...
in the
Oracle An oracle is a person or agency considered to provide wise and insightful counsel or prophetic predictions, most notably including precognition of the future, inspired by deities. As such, it is a form of divination. Description The word ...
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 describe ...
(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 A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invoking executables and pro ...
-XX:+UseConcMarkSweepGC when using java version less than 14.


See also

*
List of Java virtual machines This article provides non-exhaustive lists of Java SE Java virtual machines (JVMs). It does not include every Java ME vendor. Note that Java EE runs on the standard Java SE JVM but that some vendors specialize in providing a modified JVM optimized ...


References

{{DEFAULTSORT:Concurrent Mark Sweep Collector Automatic memory management Java virtual machine Memory management algorithms