Hubbry Logo
search button
Sign in
Concurrent mark sweep collector
Concurrent mark sweep collector
Comunity Hub
History
arrow-down
starMore
arrow-down
bob

Bob

Have a question related to this hub?

bob

Alice

Got something to say related to this hub?
Share it here.

#general is a chat channel to discuss anything related to the hub.
Hubbry Logo
search button
Sign in
Concurrent mark sweep collector
Community hub for the Wikipedia article
logoWikipedian hub
Welcome to the community hub built on top of the Concurrent mark sweep collector Wikipedia article. Here, you can discuss, collect, and organize anything related to Concurrent mark sweep collector. The pu...
Add your contribution
Concurrent mark sweep collector

The concurrent mark sweep collector (concurrent mark-sweep collector, concurrent collector or CMS)[1] was a mark-and-sweep garbage collector in the Oracle HotSpot Java virtual machine (JVM) available since version 1.4.1. It was deprecated on version 9[2] and removed on version 14,[3] so from Java 15 it is no longer available.[4][5]

HotSpot garbage collectors

[edit]

The HotSpot JVM selects the default garbage collector based on several factors.[6] The newer Garbage-First collector (G1) was planned to replace CMS.[7] 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[8][1] when using Java version less than 14.

See also

[edit]

References

[edit]
  1. ^ a b "Concurrent Mark Sweep Collector Enhancements".
  2. ^ "JEP 291: Deprecate the Concurrent Mark Sweep (CMS) Garbage Collector".
  3. ^ "JEP 363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector".
  4. ^ "JVM Garbage Collectors". 18 April 2017.
  5. ^ "Release Note: JEP 363: Remove the Concurrent Mark and Sweep (CMS) Garbage Collector".
  6. ^ "Garbage Collector Ergonomics".
  7. ^ "Java HotSpot Garbage Collection".
  8. ^ "Garbage Collectors".