UseConcMarkSweepGC is deprecated, what is its replacement?

自闭症网瘾萝莉.ら 提交于 2021-02-08 12:18:53

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/52239570/useconcmarksweepgc-is-deprecated-what-is-its-replacement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!