UseConcMarkSweepGC is deprecated, what is its replacement?

hoosierEE :

A java program is giving this warning, with JRE 10.0.2:

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

What is the recommended replacement for this switch?

Eugene :

Dropping support for CMS and then removing the CMS code, or at least more thoroughly segregating it, will reduce the maintenance burden of the GC code base and accelerate new development. The G1 garbage collector is intended, in the long term, to be a replacement for most uses of CMS.

From the Official JEP

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=36717&siteId=1