Skip to content

JVM 垃圾清理 标记-清除算法 常量池移除问题 #747

Description

@ZanderYan-cloud

该算法分为“标记”和“清除”阶段:首先标记出所有活动的对象,在标记完成后统一回收所有未被标记的对象。
《深入理解jvm》底2版p69的描述“标记-清除算法
该算法分为“标记”和“清除”阶段:首先标记出所有需要回收的对象,在标记完成后统一回收所有被标记的对象。

另外,jdk 7以后只是把字符串常量池从perm区移到了java heap区,不是整个运行时常量池。
[参考博客:
希望楼主参考一下。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions