Cross-references and garbage collection

后端 未结 3 2022
名媛妹妹
名媛妹妹 2021-01-04 12:51

There is an application with an extensive object graph. This graph mainly consists of a set of subgraphs which are connected to the rest of the graph through the only refere

3条回答
  •  遥遥无期
    2021-01-04 13:09

    The JVM operates on the notion of "islands of unreachability". If there is an unreachable 'island' of interconnected objects then that set of objects is eligible for garbage collection in its entirety.

提交回复
热议问题