“Island of isolation” of Garbage Collection

后端 未结 4 1954
太阳男子
太阳男子 2020-12-01 08:46

Could anyone please explain the concept of Island of isolation of Garbage Collection?

4条回答
  •  忘掉有多难
    2020-12-01 09:32

    Here is a good explanation of this term. Excerpt:

    • "If an object obj1 is garbage collected, but another object obj2 contains a reference to it, then obj2 is also eligible for garbage collection"
    • "If object obj2 can access object obj1 that is eligible for garbage collection, then obj2 is also eligible for garbage collection"

    This is called "Island of Isolation". An "island of isolation" describes one or more objects have NO references to them from active parts of an application.

提交回复
热议问题