java - UseConcMarkSweepGC 已弃用,它的替代品是什么?

标签 java garbage-collection jvm deprecated compiler-flags

Java 程序发出此警告,使用 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.

此开关的推荐替代品是什么?

最佳答案

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

关于java - UseConcMarkSweepGC 已弃用,它的替代品是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52239570/

相关文章:

python - 同一种语言的一种语言的实现如何能比该语言更快?

java - eclipse无法添加内存

java - 计算二维数组中每行的平均值和标准差

java - 当 .jar 文件传输到另一台计算机时,文件编写器不工作

java - Java实现多维数据的高效方法

java - G1 垃圾收集器的高内存使用问题

java - 堆参数对 GC/性能的影响?

java - JVM gc 日志不旋转

java - 无法在单台机器上运行的多个 jar 中共享单例实例

java - 向基于 Django 的后端发送 POST 请求