<bdo id='DRL4V'></bdo><ul id='DRL4V'></ul>

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

    1. <tfoot id='DRL4V'></tfoot>

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

      并发标记和扫描算法详细信息

      Concurrent Mark and Sweep algorithm details(并发标记和扫描算法详细信息)

          <tfoot id='VdcWR'></tfoot>

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

              <tbody id='VdcWR'></tbody>
          1. <legend id='VdcWR'><style id='VdcWR'><dir id='VdcWR'><q id='VdcWR'></q></dir></style></legend>
            <i id='VdcWR'><tr id='VdcWR'><dt id='VdcWR'><q id='VdcWR'><span id='VdcWR'><b id='VdcWR'><form id='VdcWR'><ins id='VdcWR'></ins><ul id='VdcWR'></ul><sub id='VdcWR'></sub></form><legend id='VdcWR'></legend><bdo id='VdcWR'><pre id='VdcWR'><center id='VdcWR'></center></pre></bdo></b><th id='VdcWR'></th></span></q></dt></tr></i><div id='VdcWR'><tfoot id='VdcWR'></tfoot><dl id='VdcWR'><fieldset id='VdcWR'></fieldset></dl></div>
              <bdo id='VdcWR'></bdo><ul id='VdcWR'></ul>
              • 本文介绍了并发标记和扫描算法详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在努力了解和获取有关 CMS 终身收集周期中涉及的步骤的更多详细信息.

                1. 首字母标记
                2. 并发标记
                3. 并发预清理
                4. 重新标记
                5. 并发扫描
                6. 并发重置

                在很多地方都非常简短地解释了这些步骤.但是,如果我必须在带有图表和伪示例的类中描述它们,我可以从哪里获得这些信息?

                PS - 我在 Google 上进行了广泛搜索,其中包含很多我理解的文字内容和行话.但我正在寻找更生动的解释,以便我可以教给我的听众.

                这些是一些流行的链接,第三个很有希望,但它没有特别解释 CMS

                1. 与其前辈

                  http://insightfullogic.com/blog/2013/feb/20/garbage-collection-java-1
                  http://insightfullogic.com/blog/2013/mar/6/garbage-collection-java-2

                  说清楚了.我忘了我也看过上面@gap_j提到的链接,也很好.

                  您询问压缩步骤在哪里,但 CMS 没有.这可能会导致其自身的问题,特别是它会增加分配内存的成本(因为 JVM 必须使用 list 来跟踪哪些内存是空闲的,并且不能只从占用空间的末尾分配内存)和它有时可能意味着碎片堆.

                  I am struggling to understand and get more details on the steps involved in CMS tenured collection cycles.

                  1. Initial Mark
                  2. Concurrent Mark
                  3. Concurrent pre-clean
                  4. Re-mark
                  5. Concurrent Sweep
                  6. Concurrent Reset

                  These steps are explained in lot of places in very short. But if I have to describe them in a class with diagrams and psuedo-examples where can I get that information from?

                  PS - I have searched extensively on Google, it throws up with a lot of textual stuff and jargon which I understand. But I am looking for a more animated explanation so that I can teach my audience.

                  These are some of the links which are popular, the 3rd one was very promising but it failed to explain the CMS in particular

                  1. http://www.infoq.com/articles/Java_Garbage_Collection_Distilled
                  2. http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html
                  3. http://www.cubrid.org/blog/dev-platform/understanding-java-garbage-collection/


                  Dear all, thanks for commenting and pointing me to some resources. I have tried to create a visual representation of the CMS steps, can you please let me know if this matches your understanding ?

                  Also I seem to be missing the Compacting step, which step does it belong to ?

                  Answer : Ok so compacting is not handled by CMS, instead it is delegated to full GC.

                  解决方案

                  For me

                  http://insightfullogic.com/blog/2013/may/7/garbage-collection-java-3

                  with its predecessors

                  http://insightfullogic.com/blog/2013/feb/20/garbage-collection-java-1
                  http://insightfullogic.com/blog/2013/mar/6/garbage-collection-java-2

                  made it clear. I'd forgotten that I'd also read the links mentioned by @gap_j above, which are very good too.

                  You asked where the Compacting step is, but CMS does not have one. This can lead to its own issues, particularly it can increase the cost of allocating memory (because the JVM has to use list to keep track of which memory is free, and can't just allocate memory from the end of the occupied space) and it can sometimes mean a fragmented heap.

                  这篇关于并发标记和扫描算法详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Maven JAVA_HOME environment variable is not defined correctly, but it is(Maven JAVA_HOME 环境变量未正确定义,但它是)
                Java System Environment Variable(Java 系统环境变量)
                Java -classpath option(Java -classpath 选项)
                Read environment variable in SpringBoot(在 SpringBoot 中读取环境变量)
                Tomcat 8 - context.xml use Environment Variable in Datasource(Tomcat 8 - context.xml 在数据源中使用环境变量)
                Issue with JAVA_HOME(JAVA_HOME 的问题)

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

                  <legend id='e1KqX'><style id='e1KqX'><dir id='e1KqX'><q id='e1KqX'></q></dir></style></legend>
                    <tbody id='e1KqX'></tbody>

                      <bdo id='e1KqX'></bdo><ul id='e1KqX'></ul>

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