1. <small id='u1Itu'></small><noframes id='u1Itu'>

        <i id='u1Itu'><tr id='u1Itu'><dt id='u1Itu'><q id='u1Itu'><span id='u1Itu'><b id='u1Itu'><form id='u1Itu'><ins id='u1Itu'></ins><ul id='u1Itu'></ul><sub id='u1Itu'></sub></form><legend id='u1Itu'></legend><bdo id='u1Itu'><pre id='u1Itu'><center id='u1Itu'></center></pre></bdo></b><th id='u1Itu'></th></span></q></dt></tr></i><div id='u1Itu'><tfoot id='u1Itu'></tfoot><dl id='u1Itu'><fieldset id='u1Itu'></fieldset></dl></div>
          <bdo id='u1Itu'></bdo><ul id='u1Itu'></ul>

      1. <legend id='u1Itu'><style id='u1Itu'><dir id='u1Itu'><q id='u1Itu'></q></dir></style></legend>

        <tfoot id='u1Itu'></tfoot>

        “孤岛"垃圾收集

        时间:2023-07-12

              <tbody id='2QQNm'></tbody>

                <small id='2QQNm'></small><noframes id='2QQNm'>

                <legend id='2QQNm'><style id='2QQNm'><dir id='2QQNm'><q id='2QQNm'></q></dir></style></legend>

                <i id='2QQNm'><tr id='2QQNm'><dt id='2QQNm'><q id='2QQNm'><span id='2QQNm'><b id='2QQNm'><form id='2QQNm'><ins id='2QQNm'></ins><ul id='2QQNm'></ul><sub id='2QQNm'></sub></form><legend id='2QQNm'></legend><bdo id='2QQNm'><pre id='2QQNm'><center id='2QQNm'></center></pre></bdo></b><th id='2QQNm'></th></span></q></dt></tr></i><div id='2QQNm'><tfoot id='2QQNm'></tfoot><dl id='2QQNm'><fieldset id='2QQNm'></fieldset></dl></div>
              • <tfoot id='2QQNm'></tfoot>

                  <bdo id='2QQNm'></bdo><ul id='2QQNm'></ul>
                • 本文介绍了“孤岛"垃圾收集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  谁能解释一下垃圾收集的孤立岛的概念吗?

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

                  推荐答案

                  对象 A 引用对象 B.对象 B 引用对象 A.对象 A 和对象 B 都没有被任何其他对象引用.那是一座孤岛.

                  Object A references object B. Object B references object A. Neither object A nor object B is referenced by any other object. That's an island of isolation.

                  基本上,隔离岛是一组相互引用但不被应用程序中任何活动对象引用的对象.严格来说,即使是单个未引用的对象也是一个孤立的孤岛.

                  Basically, an island of isolation is a group of objects that reference each other but they are not referenced by any active object in the application. Strictly speaking, even a single unreferenced object is an island of isolation too.

                  从评论

                  class A {
                     B myB; 
                  } 
                  class B { 
                     A myA; 
                  } 
                  
                  /* later */  
                  A a = new A(); 
                  B b = new B();  
                  a.b = b; 
                  b.a = a;
                  

                  这篇关于“孤岛"垃圾收集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:垃圾收集器何时会擦除使用单例模式的对象的实例? 下一篇:Java GC 安全点

                  相关文章

                • <tfoot id='IXmDr'></tfoot>

                    <small id='IXmDr'></small><noframes id='IXmDr'>

                      • <bdo id='IXmDr'></bdo><ul id='IXmDr'></ul>
                      <legend id='IXmDr'><style id='IXmDr'><dir id='IXmDr'><q id='IXmDr'></q></dir></style></legend>
                      <i id='IXmDr'><tr id='IXmDr'><dt id='IXmDr'><q id='IXmDr'><span id='IXmDr'><b id='IXmDr'><form id='IXmDr'><ins id='IXmDr'></ins><ul id='IXmDr'></ul><sub id='IXmDr'></sub></form><legend id='IXmDr'></legend><bdo id='IXmDr'><pre id='IXmDr'><center id='IXmDr'></center></pre></bdo></b><th id='IXmDr'></th></span></q></dt></tr></i><div id='IXmDr'><tfoot id='IXmDr'></tfoot><dl id='IXmDr'><fieldset id='IXmDr'></fieldset></dl></div>