JVM_memory_layout.drawio 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  1. <mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.6.1 Chrome/112.0.5615.204 Electron/24.6.1 Safari/537.36" modified="2026-02-23T11:23:30.237Z" version="21.6.1" etag="WgHd0T2gyFzEhWl4njMM" type="device" pages="9">
  2. <diagram name="JVM内存布局宏观概念划分" id="JofLo8_aBLvOt2ewSgCY">
  3. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  4. <root>
  5. <mxCell id="0" />
  6. <mxCell id="1" parent="0" />
  7. <mxCell id="pr2F3kH5S5V_bKyzhlD0-1" value="" style="group" parent="1" connectable="0" vertex="1">
  8. <mxGeometry x="280" y="120" width="240" height="320" as="geometry" />
  9. </mxCell>
  10. <mxCell id="zt5shG7FNdU1FbIKS1MW-1" value="JVM内存布局" style="text;html=1;whiteSpace=wrap;strokeColor=#d79b00;fillColor=#ffe6cc;align=center;verticalAlign=middle;rounded=0;container=0;" parent="pr2F3kH5S5V_bKyzhlD0-1" vertex="1">
  11. <mxGeometry width="240" height="40" as="geometry" />
  12. </mxCell>
  13. <mxCell id="zt5shG7FNdU1FbIKS1MW-2" value="方法区(Method Area)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;container=0;" parent="pr2F3kH5S5V_bKyzhlD0-1" vertex="1">
  14. <mxGeometry y="40" width="120" height="80" as="geometry" />
  15. </mxCell>
  16. <mxCell id="zt5shG7FNdU1FbIKS1MW-3" value="堆(Heap)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;container=0;" parent="pr2F3kH5S5V_bKyzhlD0-1" vertex="1">
  17. <mxGeometry x="120" y="40" width="120" height="80" as="geometry" />
  18. </mxCell>
  19. <mxCell id="zt5shG7FNdU1FbIKS1MW-4" value="虚拟机栈(Virtual Machine Stack)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="pr2F3kH5S5V_bKyzhlD0-1" vertex="1">
  20. <mxGeometry y="120" width="120" height="80" as="geometry" />
  21. </mxCell>
  22. <mxCell id="zt5shG7FNdU1FbIKS1MW-5" value="本地方法栈(Native Method Stack)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="pr2F3kH5S5V_bKyzhlD0-1" vertex="1">
  23. <mxGeometry x="120" y="120" width="120" height="80" as="geometry" />
  24. </mxCell>
  25. <mxCell id="zt5shG7FNdU1FbIKS1MW-6" value="程序计数器(Program Counter Register)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="pr2F3kH5S5V_bKyzhlD0-1" vertex="1">
  26. <mxGeometry y="200" width="240" height="80" as="geometry" />
  27. </mxCell>
  28. <mxCell id="zt5shG7FNdU1FbIKS1MW-7" value="线程私有数据" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="pr2F3kH5S5V_bKyzhlD0-1" vertex="1">
  29. <mxGeometry y="280" width="80" height="40" as="geometry" />
  30. </mxCell>
  31. <mxCell id="zt5shG7FNdU1FbIKS1MW-8" value="线程共享数据" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;container=0;" parent="pr2F3kH5S5V_bKyzhlD0-1" vertex="1">
  32. <mxGeometry x="160" y="280" width="80" height="40" as="geometry" />
  33. </mxCell>
  34. </root>
  35. </mxGraphModel>
  36. </diagram>
  37. <diagram id="0PQqKnQiG1qyWivhCRIe" name="补充说明-JVM内存布局宏观概念划分">
  38. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  39. <root>
  40. <mxCell id="0" />
  41. <mxCell id="1" parent="0" />
  42. <mxCell id="fwPPhnZaE1DhDsGx4A61-15" value="" style="group" parent="1" connectable="0" vertex="1">
  43. <mxGeometry x="280" y="360" width="240" height="320" as="geometry" />
  44. </mxCell>
  45. <mxCell id="a8tgr0-nT0_KQAadfQR2-9" value="JVM内存布局" style="text;html=1;whiteSpace=wrap;strokeColor=#d79b00;fillColor=#ffe6cc;align=center;verticalAlign=middle;rounded=0;container=0;" parent="fwPPhnZaE1DhDsGx4A61-15" vertex="1">
  46. <mxGeometry width="240" height="40" as="geometry" />
  47. </mxCell>
  48. <mxCell id="a8tgr0-nT0_KQAadfQR2-10" value="方法区(Method Area)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;container=0;" parent="fwPPhnZaE1DhDsGx4A61-15" vertex="1">
  49. <mxGeometry y="40" width="120" height="80" as="geometry" />
  50. </mxCell>
  51. <mxCell id="a8tgr0-nT0_KQAadfQR2-11" value="堆(Heap)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;container=0;" parent="fwPPhnZaE1DhDsGx4A61-15" vertex="1">
  52. <mxGeometry x="120" y="40" width="120" height="80" as="geometry" />
  53. </mxCell>
  54. <mxCell id="a8tgr0-nT0_KQAadfQR2-12" value="虚拟机栈(Virtual Machine Stack)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="fwPPhnZaE1DhDsGx4A61-15" vertex="1">
  55. <mxGeometry y="120" width="120" height="80" as="geometry" />
  56. </mxCell>
  57. <mxCell id="a8tgr0-nT0_KQAadfQR2-13" value="本地方法栈(Native Method Stack)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="fwPPhnZaE1DhDsGx4A61-15" vertex="1">
  58. <mxGeometry x="120" y="120" width="120" height="80" as="geometry" />
  59. </mxCell>
  60. <mxCell id="a8tgr0-nT0_KQAadfQR2-14" value="程序计数器(Program Counter Register)" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="fwPPhnZaE1DhDsGx4A61-15" vertex="1">
  61. <mxGeometry y="200" width="240" height="80" as="geometry" />
  62. </mxCell>
  63. <mxCell id="a8tgr0-nT0_KQAadfQR2-15" value="线程私有数据" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="fwPPhnZaE1DhDsGx4A61-15" vertex="1">
  64. <mxGeometry y="280" width="80" height="40" as="geometry" />
  65. </mxCell>
  66. <mxCell id="a8tgr0-nT0_KQAadfQR2-16" value="线程共享数据" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;container=0;" parent="fwPPhnZaE1DhDsGx4A61-15" vertex="1">
  67. <mxGeometry x="160" y="280" width="80" height="40" as="geometry" />
  68. </mxCell>
  69. <mxCell id="fwPPhnZaE1DhDsGx4A61-9" value="方法区" style="swimlane;whiteSpace=wrap;html=1;startSize=20;container=0;" parent="1" vertex="1">
  70. <mxGeometry x="600" y="360" width="200" height="80" as="geometry">
  71. <mxRectangle x="280" width="140" height="30" as="alternateBounds" />
  72. </mxGeometry>
  73. </mxCell>
  74. <mxCell id="fwPPhnZaE1DhDsGx4A61-11" value="堆" style="swimlane;whiteSpace=wrap;html=1;startSize=20;container=0;" parent="1" vertex="1">
  75. <mxGeometry x="600" y="480" width="200" height="80" as="geometry">
  76. <mxRectangle x="520" y="120" width="140" height="30" as="alternateBounds" />
  77. </mxGeometry>
  78. </mxCell>
  79. <mxCell id="fwPPhnZaE1DhDsGx4A61-10" value="存储Java的类元数据和运行时常量池,包括所有的类信息、常量、类变量、动态编译缓存等" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;container=0;" parent="1" vertex="1">
  80. <mxGeometry x="600" y="380" width="200" height="60" as="geometry" />
  81. </mxCell>
  82. <mxCell id="fwPPhnZaE1DhDsGx4A61-12" value="存储所有的类实例和数组,是JVM中占用内存最多的区域,垃圾回收主要也是在这个区域" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;container=0;" parent="1" vertex="1">
  83. <mxGeometry x="600" y="500" width="200" height="60" as="geometry" />
  84. </mxCell>
  85. <mxCell id="fwPPhnZaE1DhDsGx4A61-1" value="G" style="swimlane;whiteSpace=wrap;html=1;startSize=20;container=0;" parent="1" vertex="1">
  86. <mxGeometry y="360" width="200" height="80" as="geometry">
  87. <mxRectangle x="280" width="140" height="30" as="alternateBounds" />
  88. </mxGeometry>
  89. </mxCell>
  90. <mxCell id="fwPPhnZaE1DhDsGx4A61-5" value="虚拟机栈" style="swimlane;whiteSpace=wrap;html=1;startSize=20;container=0;" parent="1" vertex="1">
  91. <mxGeometry y="480" width="200" height="80" as="geometry">
  92. <mxRectangle x="280" width="140" height="30" as="alternateBounds" />
  93. </mxGeometry>
  94. </mxCell>
  95. <mxCell id="fwPPhnZaE1DhDsGx4A61-7" value="本地方法栈" style="swimlane;whiteSpace=wrap;html=1;startSize=20;container=0;" parent="1" vertex="1">
  96. <mxGeometry y="600" width="200" height="80" as="geometry">
  97. <mxRectangle x="280" width="140" height="30" as="alternateBounds" />
  98. </mxGeometry>
  99. </mxCell>
  100. <mxCell id="fwPPhnZaE1DhDsGx4A61-4" value="记录当前线程字节码指令执行的行号" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="1" vertex="1">
  101. <mxGeometry y="380" width="200" height="60" as="geometry" />
  102. </mxCell>
  103. <mxCell id="fwPPhnZaE1DhDsGx4A61-6" value="记录Java方法调用顺序,每调用一个方法,就会向栈中压入一个栈帧,栈帧中记录着局部变量表、操作数栈、动态链接、方法出口等信息" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="1" vertex="1">
  104. <mxGeometry y="500" width="200" height="60" as="geometry" />
  105. </mxCell>
  106. <mxCell id="fwPPhnZaE1DhDsGx4A61-8" value="记录native方法调用顺序,每调用一个Native方法,就会向栈中压入一个栈帧,栈帧中记录着局部变量表、操作数栈、动态链接、方法出口等信息" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;container=0;" parent="1" vertex="1">
  107. <mxGeometry y="620" width="200" height="60" as="geometry" />
  108. </mxCell>
  109. </root>
  110. </mxGraphModel>
  111. </diagram>
  112. <diagram id="mFjQR_0ZKLR3sdN5ZR0Y" name="虚拟机栈">
  113. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  114. <root>
  115. <mxCell id="0" />
  116. <mxCell id="1" parent="0" />
  117. <mxCell id="ttTbHSpm3xeFEGsjRmF9-1" value="" style="group" parent="1" connectable="0" vertex="1">
  118. <mxGeometry x="200" y="160" width="160" height="560" as="geometry" />
  119. </mxCell>
  120. <mxCell id="IHwljP5P4cBe6nXqKh2b-1" value="虚拟机栈" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="ttTbHSpm3xeFEGsjRmF9-1" vertex="1">
  121. <mxGeometry width="160" height="560" as="geometry" />
  122. </mxCell>
  123. <mxCell id="IHwljP5P4cBe6nXqKh2b-8" value="" style="group" parent="ttTbHSpm3xeFEGsjRmF9-1" connectable="0" vertex="1">
  124. <mxGeometry x="20" y="40" width="120" height="240" as="geometry" />
  125. </mxCell>
  126. <mxCell id="IHwljP5P4cBe6nXqKh2b-2" value="栈帧2" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="IHwljP5P4cBe6nXqKh2b-8" vertex="1">
  127. <mxGeometry width="120" height="240" as="geometry" />
  128. </mxCell>
  129. <mxCell id="IHwljP5P4cBe6nXqKh2b-3" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="IHwljP5P4cBe6nXqKh2b-8" vertex="1">
  130. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  131. </mxCell>
  132. <mxCell id="IHwljP5P4cBe6nXqKh2b-4" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="IHwljP5P4cBe6nXqKh2b-8" vertex="1">
  133. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  134. </mxCell>
  135. <mxCell id="IHwljP5P4cBe6nXqKh2b-5" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="IHwljP5P4cBe6nXqKh2b-8" vertex="1">
  136. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  137. </mxCell>
  138. <mxCell id="IHwljP5P4cBe6nXqKh2b-6" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="IHwljP5P4cBe6nXqKh2b-8" vertex="1">
  139. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  140. </mxCell>
  141. <mxCell id="IHwljP5P4cBe6nXqKh2b-7" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="IHwljP5P4cBe6nXqKh2b-8" vertex="1">
  142. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  143. </mxCell>
  144. <mxCell id="IHwljP5P4cBe6nXqKh2b-9" value="" style="group" parent="ttTbHSpm3xeFEGsjRmF9-1" connectable="0" vertex="1">
  145. <mxGeometry x="20" y="280" width="120" height="240" as="geometry" />
  146. </mxCell>
  147. <mxCell id="IHwljP5P4cBe6nXqKh2b-10" value="栈帧1" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="IHwljP5P4cBe6nXqKh2b-9" vertex="1">
  148. <mxGeometry width="120" height="240" as="geometry" />
  149. </mxCell>
  150. <mxCell id="IHwljP5P4cBe6nXqKh2b-11" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="IHwljP5P4cBe6nXqKh2b-9" vertex="1">
  151. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  152. </mxCell>
  153. <mxCell id="IHwljP5P4cBe6nXqKh2b-12" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="IHwljP5P4cBe6nXqKh2b-9" vertex="1">
  154. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  155. </mxCell>
  156. <mxCell id="IHwljP5P4cBe6nXqKh2b-13" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="IHwljP5P4cBe6nXqKh2b-9" vertex="1">
  157. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  158. </mxCell>
  159. <mxCell id="IHwljP5P4cBe6nXqKh2b-14" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="IHwljP5P4cBe6nXqKh2b-9" vertex="1">
  160. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  161. </mxCell>
  162. <mxCell id="IHwljP5P4cBe6nXqKh2b-15" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="IHwljP5P4cBe6nXqKh2b-9" vertex="1">
  163. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  164. </mxCell>
  165. <mxCell id="IHwljP5P4cBe6nXqKh2b-16" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="ttTbHSpm3xeFEGsjRmF9-1" vertex="1">
  166. <mxGeometry x="20" y="520" width="120" height="40" as="geometry" />
  167. </mxCell>
  168. </root>
  169. </mxGraphModel>
  170. </diagram>
  171. <diagram id="-Fs7ucyEoneauZSn3GLy" name="本地方法栈">
  172. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  173. <root>
  174. <mxCell id="0" />
  175. <mxCell id="1" parent="0" />
  176. <mxCell id="NCYtsboCi_AIzlQS68eh-1" value="" style="group" parent="1" connectable="0" vertex="1">
  177. <mxGeometry x="200" y="400" width="160" height="560" as="geometry" />
  178. </mxCell>
  179. <mxCell id="NCYtsboCi_AIzlQS68eh-2" value="本地方法栈" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="NCYtsboCi_AIzlQS68eh-1" vertex="1">
  180. <mxGeometry width="160" height="560" as="geometry" />
  181. </mxCell>
  182. <mxCell id="NCYtsboCi_AIzlQS68eh-3" value="" style="group" parent="NCYtsboCi_AIzlQS68eh-1" connectable="0" vertex="1">
  183. <mxGeometry x="20" y="40" width="120" height="240" as="geometry" />
  184. </mxCell>
  185. <mxCell id="NCYtsboCi_AIzlQS68eh-4" value="栈帧2" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="NCYtsboCi_AIzlQS68eh-3" vertex="1">
  186. <mxGeometry width="120" height="240" as="geometry" />
  187. </mxCell>
  188. <mxCell id="NCYtsboCi_AIzlQS68eh-5" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="NCYtsboCi_AIzlQS68eh-3" vertex="1">
  189. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  190. </mxCell>
  191. <mxCell id="NCYtsboCi_AIzlQS68eh-6" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="NCYtsboCi_AIzlQS68eh-3" vertex="1">
  192. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  193. </mxCell>
  194. <mxCell id="NCYtsboCi_AIzlQS68eh-7" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="NCYtsboCi_AIzlQS68eh-3" vertex="1">
  195. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  196. </mxCell>
  197. <mxCell id="NCYtsboCi_AIzlQS68eh-8" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="NCYtsboCi_AIzlQS68eh-3" vertex="1">
  198. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  199. </mxCell>
  200. <mxCell id="NCYtsboCi_AIzlQS68eh-9" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="NCYtsboCi_AIzlQS68eh-3" vertex="1">
  201. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  202. </mxCell>
  203. <mxCell id="NCYtsboCi_AIzlQS68eh-10" value="" style="group" parent="NCYtsboCi_AIzlQS68eh-1" connectable="0" vertex="1">
  204. <mxGeometry x="20" y="280" width="120" height="240" as="geometry" />
  205. </mxCell>
  206. <mxCell id="NCYtsboCi_AIzlQS68eh-11" value="栈帧1" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="NCYtsboCi_AIzlQS68eh-10" vertex="1">
  207. <mxGeometry width="120" height="240" as="geometry" />
  208. </mxCell>
  209. <mxCell id="NCYtsboCi_AIzlQS68eh-12" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="NCYtsboCi_AIzlQS68eh-10" vertex="1">
  210. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  211. </mxCell>
  212. <mxCell id="NCYtsboCi_AIzlQS68eh-13" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="NCYtsboCi_AIzlQS68eh-10" vertex="1">
  213. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  214. </mxCell>
  215. <mxCell id="NCYtsboCi_AIzlQS68eh-14" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="NCYtsboCi_AIzlQS68eh-10" vertex="1">
  216. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  217. </mxCell>
  218. <mxCell id="NCYtsboCi_AIzlQS68eh-15" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="NCYtsboCi_AIzlQS68eh-10" vertex="1">
  219. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  220. </mxCell>
  221. <mxCell id="NCYtsboCi_AIzlQS68eh-16" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="NCYtsboCi_AIzlQS68eh-10" vertex="1">
  222. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  223. </mxCell>
  224. <mxCell id="NCYtsboCi_AIzlQS68eh-17" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="NCYtsboCi_AIzlQS68eh-1" vertex="1">
  225. <mxGeometry x="20" y="520" width="120" height="40" as="geometry" />
  226. </mxCell>
  227. </root>
  228. </mxGraphModel>
  229. </diagram>
  230. <diagram id="Gn4BerVLJRRqPcjyFvso" name="堆">
  231. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  232. <root>
  233. <mxCell id="0" />
  234. <mxCell id="1" parent="0" />
  235. <mxCell id="jmsMgb09gSE-HMBwIAkM-6" value="" style="group" parent="1" connectable="0" vertex="1">
  236. <mxGeometry y="480" width="800" height="280" as="geometry" />
  237. </mxCell>
  238. <mxCell id="T8g913gdpcaoUnvAe4j1-7" value="堆(JDK1.8前的划分规则)" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#f8cecc;strokeColor=#b85450;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  239. <mxGeometry width="800" height="280" as="geometry" />
  240. </mxCell>
  241. <mxCell id="T8g913gdpcaoUnvAe4j1-8" value="新生代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  242. <mxGeometry x="40" y="40" width="320" height="200" as="geometry" />
  243. </mxCell>
  244. <mxCell id="T8g913gdpcaoUnvAe4j1-9" value="老年代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  245. <mxGeometry x="400" y="40" width="200" height="200" as="geometry" />
  246. </mxCell>
  247. <mxCell id="T8g913gdpcaoUnvAe4j1-10" value="永久代(方法区的实现)" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  248. <mxGeometry x="640" y="40" width="120" height="200" as="geometry" />
  249. </mxCell>
  250. <mxCell id="T8g913gdpcaoUnvAe4j1-11" value="Eden" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  251. <mxGeometry x="80" y="80" width="160" height="160" as="geometry" />
  252. </mxCell>
  253. <mxCell id="T8g913gdpcaoUnvAe4j1-12" value="Survivor" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  254. <mxGeometry x="240" y="80" width="80" height="160" as="geometry" />
  255. </mxCell>
  256. <mxCell id="T8g913gdpcaoUnvAe4j1-6" value="" style="group" parent="jmsMgb09gSE-HMBwIAkM-6" connectable="0" vertex="1">
  257. <mxGeometry x="440" y="80" width="120" height="160" as="geometry" />
  258. </mxCell>
  259. <mxCell id="T8g913gdpcaoUnvAe4j1-1" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="T8g913gdpcaoUnvAe4j1-6" vertex="1">
  260. <mxGeometry width="120" height="40" as="geometry" />
  261. </mxCell>
  262. <mxCell id="T8g913gdpcaoUnvAe4j1-2" value="类实例2" style="rounded=1;whiteSpace=wrap;html=1;" parent="T8g913gdpcaoUnvAe4j1-6" vertex="1">
  263. <mxGeometry y="40" width="120" height="40" as="geometry" />
  264. </mxCell>
  265. <mxCell id="T8g913gdpcaoUnvAe4j1-3" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="T8g913gdpcaoUnvAe4j1-6" vertex="1">
  266. <mxGeometry y="120" width="120" height="40" as="geometry" />
  267. </mxCell>
  268. <mxCell id="T8g913gdpcaoUnvAe4j1-5" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="T8g913gdpcaoUnvAe4j1-6" vertex="1">
  269. <mxGeometry y="80" width="120" height="40" as="geometry" />
  270. </mxCell>
  271. <mxCell id="T8g913gdpcaoUnvAe4j1-13" value="From&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  272. <mxGeometry x="240" y="180" width="80" height="60" as="geometry" />
  273. </mxCell>
  274. <mxCell id="T8g913gdpcaoUnvAe4j1-14" value="&lt;div&gt;To&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  275. <mxGeometry x="240" y="120" width="80" height="60" as="geometry" />
  276. </mxCell>
  277. <mxCell id="T8g913gdpcaoUnvAe4j1-30" value="" style="group" parent="jmsMgb09gSE-HMBwIAkM-6" connectable="0" vertex="1">
  278. <mxGeometry x="120" y="120" width="80" height="120" as="geometry" />
  279. </mxCell>
  280. <mxCell id="T8g913gdpcaoUnvAe4j1-26" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="T8g913gdpcaoUnvAe4j1-30" vertex="1">
  281. <mxGeometry width="80" height="40" as="geometry" />
  282. </mxCell>
  283. <mxCell id="T8g913gdpcaoUnvAe4j1-28" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="T8g913gdpcaoUnvAe4j1-30" vertex="1">
  284. <mxGeometry y="80" width="80" height="40" as="geometry" />
  285. </mxCell>
  286. <mxCell id="T8g913gdpcaoUnvAe4j1-29" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="T8g913gdpcaoUnvAe4j1-30" vertex="1">
  287. <mxGeometry y="40" width="80" height="40" as="geometry" />
  288. </mxCell>
  289. <mxCell id="T8g913gdpcaoUnvAe4j1-31" value="类实例" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  290. <mxGeometry x="260" y="150" width="40" height="20" as="geometry" />
  291. </mxCell>
  292. <mxCell id="jmsMgb09gSE-HMBwIAkM-2" value="类信息" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  293. <mxGeometry x="660" y="85" width="80" height="40" as="geometry" />
  294. </mxCell>
  295. <mxCell id="jmsMgb09gSE-HMBwIAkM-3" value="运行时常量池" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-6" vertex="1">
  296. <mxGeometry x="660" y="160" width="80" height="40" as="geometry" />
  297. </mxCell>
  298. <mxCell id="jmsMgb09gSE-HMBwIAkM-30" value="" style="group" parent="1" connectable="0" vertex="1">
  299. <mxGeometry x="80" y="160" width="640" height="280" as="geometry" />
  300. </mxCell>
  301. <mxCell id="jmsMgb09gSE-HMBwIAkM-8" value="堆(JDK1.8后的划分规则)" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#f8cecc;strokeColor=#b85450;" parent="jmsMgb09gSE-HMBwIAkM-30" vertex="1">
  302. <mxGeometry width="640" height="280" as="geometry" />
  303. </mxCell>
  304. <mxCell id="jmsMgb09gSE-HMBwIAkM-9" value="新生代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="jmsMgb09gSE-HMBwIAkM-30" vertex="1">
  305. <mxGeometry x="40" y="40" width="320" height="200" as="geometry" />
  306. </mxCell>
  307. <mxCell id="jmsMgb09gSE-HMBwIAkM-10" value="老年代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="jmsMgb09gSE-HMBwIAkM-30" vertex="1">
  308. <mxGeometry x="400" y="40" width="200" height="200" as="geometry" />
  309. </mxCell>
  310. <mxCell id="jmsMgb09gSE-HMBwIAkM-12" value="Eden" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="jmsMgb09gSE-HMBwIAkM-30" vertex="1">
  311. <mxGeometry x="80" y="80" width="160" height="160" as="geometry" />
  312. </mxCell>
  313. <mxCell id="jmsMgb09gSE-HMBwIAkM-13" value="Survivor" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="jmsMgb09gSE-HMBwIAkM-30" vertex="1">
  314. <mxGeometry x="240" y="80" width="80" height="160" as="geometry" />
  315. </mxCell>
  316. <mxCell id="jmsMgb09gSE-HMBwIAkM-14" value="" style="group" parent="jmsMgb09gSE-HMBwIAkM-30" connectable="0" vertex="1">
  317. <mxGeometry x="440" y="80" width="120" height="160" as="geometry" />
  318. </mxCell>
  319. <mxCell id="jmsMgb09gSE-HMBwIAkM-15" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-14" vertex="1">
  320. <mxGeometry width="120" height="40" as="geometry" />
  321. </mxCell>
  322. <mxCell id="jmsMgb09gSE-HMBwIAkM-16" value="类实例2" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-14" vertex="1">
  323. <mxGeometry y="40" width="120" height="40" as="geometry" />
  324. </mxCell>
  325. <mxCell id="jmsMgb09gSE-HMBwIAkM-17" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="jmsMgb09gSE-HMBwIAkM-14" vertex="1">
  326. <mxGeometry y="120" width="120" height="40" as="geometry" />
  327. </mxCell>
  328. <mxCell id="jmsMgb09gSE-HMBwIAkM-18" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-14" vertex="1">
  329. <mxGeometry y="80" width="120" height="40" as="geometry" />
  330. </mxCell>
  331. <mxCell id="jmsMgb09gSE-HMBwIAkM-19" value="From&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="jmsMgb09gSE-HMBwIAkM-30" vertex="1">
  332. <mxGeometry x="240" y="180" width="80" height="60" as="geometry" />
  333. </mxCell>
  334. <mxCell id="jmsMgb09gSE-HMBwIAkM-20" value="&lt;div&gt;To&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="jmsMgb09gSE-HMBwIAkM-30" vertex="1">
  335. <mxGeometry x="240" y="120" width="80" height="60" as="geometry" />
  336. </mxCell>
  337. <mxCell id="jmsMgb09gSE-HMBwIAkM-21" value="" style="group" parent="jmsMgb09gSE-HMBwIAkM-30" connectable="0" vertex="1">
  338. <mxGeometry x="120" y="120" width="80" height="120" as="geometry" />
  339. </mxCell>
  340. <mxCell id="jmsMgb09gSE-HMBwIAkM-22" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-21" vertex="1">
  341. <mxGeometry width="80" height="40" as="geometry" />
  342. </mxCell>
  343. <mxCell id="jmsMgb09gSE-HMBwIAkM-23" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="jmsMgb09gSE-HMBwIAkM-21" vertex="1">
  344. <mxGeometry y="80" width="80" height="40" as="geometry" />
  345. </mxCell>
  346. <mxCell id="jmsMgb09gSE-HMBwIAkM-24" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-21" vertex="1">
  347. <mxGeometry y="40" width="80" height="40" as="geometry" />
  348. </mxCell>
  349. <mxCell id="jmsMgb09gSE-HMBwIAkM-25" value="类实例" style="rounded=1;whiteSpace=wrap;html=1;" parent="jmsMgb09gSE-HMBwIAkM-30" vertex="1">
  350. <mxGeometry x="260" y="150" width="40" height="20" as="geometry" />
  351. </mxCell>
  352. </root>
  353. </mxGraphModel>
  354. </diagram>
  355. <diagram id="2ekqNNg3eij3O1XjyKL2" name="补充说明-堆">
  356. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  357. <root>
  358. <mxCell id="0" />
  359. <mxCell id="1" parent="0" />
  360. <mxCell id="2Fu1eIdoqTHVlaibyGas-61" value="" style="group" parent="1" connectable="0" vertex="1">
  361. <mxGeometry x="80" width="640" height="280" as="geometry" />
  362. </mxCell>
  363. <mxCell id="2Fu1eIdoqTHVlaibyGas-62" value="堆(JDK1.8后的划分规则)" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#f8cecc;strokeColor=#b85450;" parent="2Fu1eIdoqTHVlaibyGas-61" vertex="1">
  364. <mxGeometry width="640" height="280" as="geometry" />
  365. </mxCell>
  366. <mxCell id="2Fu1eIdoqTHVlaibyGas-63" value="新生代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="2Fu1eIdoqTHVlaibyGas-61" vertex="1">
  367. <mxGeometry x="40" y="40" width="320" height="200" as="geometry" />
  368. </mxCell>
  369. <mxCell id="2Fu1eIdoqTHVlaibyGas-64" value="老年代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="2Fu1eIdoqTHVlaibyGas-61" vertex="1">
  370. <mxGeometry x="400" y="40" width="200" height="200" as="geometry" />
  371. </mxCell>
  372. <mxCell id="2Fu1eIdoqTHVlaibyGas-65" value="Eden" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="2Fu1eIdoqTHVlaibyGas-61" vertex="1">
  373. <mxGeometry x="80" y="80" width="160" height="160" as="geometry" />
  374. </mxCell>
  375. <mxCell id="2Fu1eIdoqTHVlaibyGas-66" value="Survivor" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="2Fu1eIdoqTHVlaibyGas-61" vertex="1">
  376. <mxGeometry x="240" y="80" width="80" height="160" as="geometry" />
  377. </mxCell>
  378. <mxCell id="2Fu1eIdoqTHVlaibyGas-67" value="" style="group" parent="2Fu1eIdoqTHVlaibyGas-61" connectable="0" vertex="1">
  379. <mxGeometry x="440" y="80" width="120" height="160" as="geometry" />
  380. </mxCell>
  381. <mxCell id="2Fu1eIdoqTHVlaibyGas-68" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="2Fu1eIdoqTHVlaibyGas-67" vertex="1">
  382. <mxGeometry width="120" height="40" as="geometry" />
  383. </mxCell>
  384. <mxCell id="2Fu1eIdoqTHVlaibyGas-69" value="类实例2" style="rounded=1;whiteSpace=wrap;html=1;" parent="2Fu1eIdoqTHVlaibyGas-67" vertex="1">
  385. <mxGeometry y="40" width="120" height="40" as="geometry" />
  386. </mxCell>
  387. <mxCell id="2Fu1eIdoqTHVlaibyGas-70" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="2Fu1eIdoqTHVlaibyGas-67" vertex="1">
  388. <mxGeometry y="120" width="120" height="40" as="geometry" />
  389. </mxCell>
  390. <mxCell id="2Fu1eIdoqTHVlaibyGas-71" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="2Fu1eIdoqTHVlaibyGas-67" vertex="1">
  391. <mxGeometry y="80" width="120" height="40" as="geometry" />
  392. </mxCell>
  393. <mxCell id="2Fu1eIdoqTHVlaibyGas-72" value="From&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="2Fu1eIdoqTHVlaibyGas-61" vertex="1">
  394. <mxGeometry x="240" y="180" width="80" height="60" as="geometry" />
  395. </mxCell>
  396. <mxCell id="2Fu1eIdoqTHVlaibyGas-73" value="&lt;div&gt;To&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="2Fu1eIdoqTHVlaibyGas-61" vertex="1">
  397. <mxGeometry x="240" y="120" width="80" height="60" as="geometry" />
  398. </mxCell>
  399. <mxCell id="2Fu1eIdoqTHVlaibyGas-74" value="" style="group" parent="2Fu1eIdoqTHVlaibyGas-61" connectable="0" vertex="1">
  400. <mxGeometry x="120" y="120" width="80" height="120" as="geometry" />
  401. </mxCell>
  402. <mxCell id="2Fu1eIdoqTHVlaibyGas-75" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="2Fu1eIdoqTHVlaibyGas-74" vertex="1">
  403. <mxGeometry width="80" height="40" as="geometry" />
  404. </mxCell>
  405. <mxCell id="2Fu1eIdoqTHVlaibyGas-76" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="2Fu1eIdoqTHVlaibyGas-74" vertex="1">
  406. <mxGeometry y="80" width="80" height="40" as="geometry" />
  407. </mxCell>
  408. <mxCell id="2Fu1eIdoqTHVlaibyGas-77" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="2Fu1eIdoqTHVlaibyGas-74" vertex="1">
  409. <mxGeometry y="40" width="80" height="40" as="geometry" />
  410. </mxCell>
  411. <mxCell id="2Fu1eIdoqTHVlaibyGas-78" value="类实例" style="rounded=1;whiteSpace=wrap;html=1;" parent="2Fu1eIdoqTHVlaibyGas-61" vertex="1">
  412. <mxGeometry x="260" y="150" width="40" height="20" as="geometry" />
  413. </mxCell>
  414. <mxCell id="2Fu1eIdoqTHVlaibyGas-79" value="新生代" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
  415. <mxGeometry x="80" y="320" width="360" height="200" as="geometry" />
  416. </mxCell>
  417. <mxCell id="2Fu1eIdoqTHVlaibyGas-80" value="&lt;font style=&quot;font-size: 16px;&quot;&gt;新生代存放对象实例年龄小于15的对象实例;刚创建的的对象实例存放在Eden区,Eden区对象实例在GC中存活的对象实例移动到From区,每次GC结束后将年龄小于15的实例移动到To区,年龄大于等于15的实例移动到老年代;每次GC前会将To区的实例移动到From区&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="2Fu1eIdoqTHVlaibyGas-79" vertex="1">
  418. <mxGeometry y="20" width="360" height="180" as="geometry" />
  419. </mxCell>
  420. <mxCell id="2Fu1eIdoqTHVlaibyGas-82" value="老年代" style="swimlane;whiteSpace=wrap;html=1;" parent="1" vertex="1">
  421. <mxGeometry x="480" y="320" width="240" height="200" as="geometry" />
  422. </mxCell>
  423. <mxCell id="2Fu1eIdoqTHVlaibyGas-83" value="&lt;font style=&quot;font-size: 16px;&quot;&gt;老年代存放年龄大于等于15的实例;老年代的GC频率比较低,所以将多次GC都没能回收的实例存放在这里(长期需要使用的实例)&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="2Fu1eIdoqTHVlaibyGas-82" vertex="1">
  424. <mxGeometry y="20" width="240" height="180" as="geometry" />
  425. </mxCell>
  426. <mxCell id="2Fu1eIdoqTHVlaibyGas-84" value="刚创建的对象实例年龄为0,每经过一次GC后年龄增加1" style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;rounded=0;" parent="1" vertex="1">
  427. <mxGeometry x="80" y="560" width="320" height="40" as="geometry" />
  428. </mxCell>
  429. <mxCell id="2Fu1eIdoqTHVlaibyGas-85" value="Eden区存放刚创建的实例" style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;rounded=0;" parent="1" vertex="1">
  430. <mxGeometry x="400" y="560" width="320" height="40" as="geometry" />
  431. </mxCell>
  432. <mxCell id="2Fu1eIdoqTHVlaibyGas-86" value="Sruvivor区存放在GC后存活的实例" style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;rounded=0;" parent="1" vertex="1">
  433. <mxGeometry x="80" y="600" width="320" height="40" as="geometry" />
  434. </mxCell>
  435. <mxCell id="2Fu1eIdoqTHVlaibyGas-87" value="To区存放年龄大于0小于15的实例" style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;rounded=0;" parent="1" vertex="1">
  436. <mxGeometry x="400" y="600" width="320" height="40" as="geometry" />
  437. </mxCell>
  438. <mxCell id="2Fu1eIdoqTHVlaibyGas-88" value="From区用于临时存储" style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;rounded=0;" parent="1" vertex="1">
  439. <mxGeometry x="80" y="640" width="320" height="40" as="geometry" />
  440. </mxCell>
  441. </root>
  442. </mxGraphModel>
  443. </diagram>
  444. <diagram id="4SiLCrbZA75wwiL11_3r" name="方法区">
  445. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  446. <root>
  447. <mxCell id="0" />
  448. <mxCell id="1" parent="0" />
  449. <mxCell id="makAvxN0a6i-EegIesPa-1" value="" style="group" parent="1" connectable="0" vertex="1">
  450. <mxGeometry x="200" y="200" width="440" height="560" as="geometry" />
  451. </mxCell>
  452. <mxCell id="0FzhG4t7QJQX12a5sO6e-1" value="方法区" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#f8cecc;strokeColor=#b85450;" parent="makAvxN0a6i-EegIesPa-1" vertex="1">
  453. <mxGeometry width="440" height="560" as="geometry" />
  454. </mxCell>
  455. <mxCell id="0FzhG4t7QJQX12a5sO6e-24" value="" style="group" parent="makAvxN0a6i-EegIesPa-1" connectable="0" vertex="1">
  456. <mxGeometry x="34" y="40" width="360" height="320" as="geometry" />
  457. </mxCell>
  458. <mxCell id="0FzhG4t7QJQX12a5sO6e-3" value="类信息表" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="0FzhG4t7QJQX12a5sO6e-24" vertex="1">
  459. <mxGeometry width="360" height="320" as="geometry" />
  460. </mxCell>
  461. <mxCell id="0FzhG4t7QJQX12a5sO6e-12" value="" style="group" parent="0FzhG4t7QJQX12a5sO6e-24" connectable="0" vertex="1">
  462. <mxGeometry x="40" y="40" width="120" height="240" as="geometry" />
  463. </mxCell>
  464. <mxCell id="0FzhG4t7QJQX12a5sO6e-4" value="Class1" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="0FzhG4t7QJQX12a5sO6e-12" vertex="1">
  465. <mxGeometry width="120" height="240" as="geometry" />
  466. </mxCell>
  467. <mxCell id="0FzhG4t7QJQX12a5sO6e-10" value="" style="group" parent="0FzhG4t7QJQX12a5sO6e-12" connectable="0" vertex="1">
  468. <mxGeometry x="20" y="40" width="80" height="200" as="geometry" />
  469. </mxCell>
  470. <mxCell id="0FzhG4t7QJQX12a5sO6e-5" value="类信息" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-10" vertex="1">
  471. <mxGeometry width="80" height="40" as="geometry" />
  472. </mxCell>
  473. <mxCell id="0FzhG4t7QJQX12a5sO6e-6" value="类常量" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-10" vertex="1">
  474. <mxGeometry y="40" width="80" height="40" as="geometry" />
  475. </mxCell>
  476. <mxCell id="0FzhG4t7QJQX12a5sO6e-7" value="类加载器" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-10" vertex="1">
  477. <mxGeometry y="80" width="80" height="40" as="geometry" />
  478. </mxCell>
  479. <mxCell id="0FzhG4t7QJQX12a5sO6e-8" value="类实例引用" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-10" vertex="1">
  480. <mxGeometry y="120" width="80" height="40" as="geometry" />
  481. </mxCell>
  482. <mxCell id="0FzhG4t7QJQX12a5sO6e-9" value="方法表" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-10" vertex="1">
  483. <mxGeometry y="160" width="80" height="40" as="geometry" />
  484. </mxCell>
  485. <mxCell id="0FzhG4t7QJQX12a5sO6e-14" value="" style="group" parent="0FzhG4t7QJQX12a5sO6e-24" connectable="0" vertex="1">
  486. <mxGeometry x="200" y="40" width="120" height="240" as="geometry" />
  487. </mxCell>
  488. <mxCell id="0FzhG4t7QJQX12a5sO6e-15" value="Class2" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="0FzhG4t7QJQX12a5sO6e-14" vertex="1">
  489. <mxGeometry width="120" height="240" as="geometry" />
  490. </mxCell>
  491. <mxCell id="0FzhG4t7QJQX12a5sO6e-16" value="" style="group" parent="0FzhG4t7QJQX12a5sO6e-14" connectable="0" vertex="1">
  492. <mxGeometry x="20" y="40" width="80" height="200" as="geometry" />
  493. </mxCell>
  494. <mxCell id="0FzhG4t7QJQX12a5sO6e-17" value="类信息" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-16" vertex="1">
  495. <mxGeometry width="80" height="40" as="geometry" />
  496. </mxCell>
  497. <mxCell id="0FzhG4t7QJQX12a5sO6e-18" value="类常量" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-16" vertex="1">
  498. <mxGeometry y="40" width="80" height="40" as="geometry" />
  499. </mxCell>
  500. <mxCell id="0FzhG4t7QJQX12a5sO6e-19" value="类加载器" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-16" vertex="1">
  501. <mxGeometry y="80" width="80" height="40" as="geometry" />
  502. </mxCell>
  503. <mxCell id="0FzhG4t7QJQX12a5sO6e-20" value="类实例引用" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-16" vertex="1">
  504. <mxGeometry y="120" width="80" height="40" as="geometry" />
  505. </mxCell>
  506. <mxCell id="0FzhG4t7QJQX12a5sO6e-21" value="方法表" style="rounded=1;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-16" vertex="1">
  507. <mxGeometry y="160" width="80" height="40" as="geometry" />
  508. </mxCell>
  509. <mxCell id="0FzhG4t7QJQX12a5sO6e-32" value="" style="group" parent="makAvxN0a6i-EegIesPa-1" connectable="0" vertex="1">
  510. <mxGeometry x="40" y="400" width="360" height="120" as="geometry" />
  511. </mxCell>
  512. <mxCell id="0FzhG4t7QJQX12a5sO6e-23" value="运行时常量池" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;container=0;" parent="0FzhG4t7QJQX12a5sO6e-32" vertex="1">
  513. <mxGeometry width="360" height="120" as="geometry">
  514. <mxRectangle width="110" height="30" as="alternateBounds" />
  515. </mxGeometry>
  516. </mxCell>
  517. <mxCell id="0FzhG4t7QJQX12a5sO6e-26" value="常量1" style="rounded=0;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-32" vertex="1">
  518. <mxGeometry x="40" y="40" width="40" height="40" as="geometry" />
  519. </mxCell>
  520. <mxCell id="0FzhG4t7QJQX12a5sO6e-27" value="常量2" style="rounded=0;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-32" vertex="1">
  521. <mxGeometry x="280" y="40" width="40" height="40" as="geometry" />
  522. </mxCell>
  523. <mxCell id="0FzhG4t7QJQX12a5sO6e-28" value="字符串常量" style="rounded=0;whiteSpace=wrap;html=1;" parent="0FzhG4t7QJQX12a5sO6e-32" vertex="1">
  524. <mxGeometry x="140" y="40" width="80" height="40" as="geometry" />
  525. </mxCell>
  526. <mxCell id="0FzhG4t7QJQX12a5sO6e-33" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="makAvxN0a6i-EegIesPa-1" source="0FzhG4t7QJQX12a5sO6e-6" target="0FzhG4t7QJQX12a5sO6e-26" edge="1">
  527. <mxGeometry relative="1" as="geometry">
  528. <Array as="points">
  529. <mxPoint x="20" y="180" />
  530. <mxPoint x="20" y="460" />
  531. </Array>
  532. </mxGeometry>
  533. </mxCell>
  534. <mxCell id="0FzhG4t7QJQX12a5sO6e-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="makAvxN0a6i-EegIesPa-1" source="0FzhG4t7QJQX12a5sO6e-18" target="0FzhG4t7QJQX12a5sO6e-27" edge="1">
  535. <mxGeometry relative="1" as="geometry">
  536. <Array as="points">
  537. <mxPoint x="420" y="180" />
  538. <mxPoint x="420" y="460" />
  539. </Array>
  540. </mxGeometry>
  541. </mxCell>
  542. </root>
  543. </mxGraphModel>
  544. </diagram>
  545. <diagram id="WIEvzm0NJIPL_6Pg9aMm" name="内存布局-JDK1.8前">
  546. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  547. <root>
  548. <mxCell id="0" />
  549. <mxCell id="1" parent="0" />
  550. <mxCell id="PymaMMgzeUYcn9CF6Agq-1" value="" style="group" parent="1" connectable="0" vertex="1">
  551. <mxGeometry width="800" height="880" as="geometry" />
  552. </mxCell>
  553. <mxCell id="ErpZGPYhzL6YkgV7Goa3-2" value="" style="group" parent="PymaMMgzeUYcn9CF6Agq-1" connectable="0" vertex="1">
  554. <mxGeometry width="800" height="840" as="geometry" />
  555. </mxCell>
  556. <mxCell id="8jtEEBDGsTIVlHy177NM-1" value="" style="group" parent="ErpZGPYhzL6YkgV7Goa3-2" connectable="0" vertex="1">
  557. <mxGeometry width="160" height="560" as="geometry" />
  558. </mxCell>
  559. <mxCell id="8jtEEBDGsTIVlHy177NM-2" value="虚拟机栈" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="8jtEEBDGsTIVlHy177NM-1" vertex="1">
  560. <mxGeometry width="160" height="560" as="geometry" />
  561. </mxCell>
  562. <mxCell id="8jtEEBDGsTIVlHy177NM-3" value="" style="group" parent="8jtEEBDGsTIVlHy177NM-1" connectable="0" vertex="1">
  563. <mxGeometry x="20" y="40" width="120" height="240" as="geometry" />
  564. </mxCell>
  565. <mxCell id="8jtEEBDGsTIVlHy177NM-4" value="栈帧2" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="8jtEEBDGsTIVlHy177NM-3" vertex="1">
  566. <mxGeometry width="120" height="240" as="geometry" />
  567. </mxCell>
  568. <mxCell id="8jtEEBDGsTIVlHy177NM-5" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="8jtEEBDGsTIVlHy177NM-3" vertex="1">
  569. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  570. </mxCell>
  571. <mxCell id="8jtEEBDGsTIVlHy177NM-6" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="8jtEEBDGsTIVlHy177NM-3" vertex="1">
  572. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  573. </mxCell>
  574. <mxCell id="8jtEEBDGsTIVlHy177NM-7" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="8jtEEBDGsTIVlHy177NM-3" vertex="1">
  575. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  576. </mxCell>
  577. <mxCell id="8jtEEBDGsTIVlHy177NM-8" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="8jtEEBDGsTIVlHy177NM-3" vertex="1">
  578. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  579. </mxCell>
  580. <mxCell id="8jtEEBDGsTIVlHy177NM-9" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="8jtEEBDGsTIVlHy177NM-3" vertex="1">
  581. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  582. </mxCell>
  583. <mxCell id="8jtEEBDGsTIVlHy177NM-10" value="" style="group" parent="8jtEEBDGsTIVlHy177NM-1" connectable="0" vertex="1">
  584. <mxGeometry x="20" y="280" width="120" height="240" as="geometry" />
  585. </mxCell>
  586. <mxCell id="8jtEEBDGsTIVlHy177NM-11" value="栈帧1" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="8jtEEBDGsTIVlHy177NM-10" vertex="1">
  587. <mxGeometry width="120" height="240" as="geometry" />
  588. </mxCell>
  589. <mxCell id="8jtEEBDGsTIVlHy177NM-12" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="8jtEEBDGsTIVlHy177NM-10" vertex="1">
  590. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  591. </mxCell>
  592. <mxCell id="8jtEEBDGsTIVlHy177NM-13" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="8jtEEBDGsTIVlHy177NM-10" vertex="1">
  593. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  594. </mxCell>
  595. <mxCell id="8jtEEBDGsTIVlHy177NM-14" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="8jtEEBDGsTIVlHy177NM-10" vertex="1">
  596. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  597. </mxCell>
  598. <mxCell id="8jtEEBDGsTIVlHy177NM-15" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="8jtEEBDGsTIVlHy177NM-10" vertex="1">
  599. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  600. </mxCell>
  601. <mxCell id="8jtEEBDGsTIVlHy177NM-16" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="8jtEEBDGsTIVlHy177NM-10" vertex="1">
  602. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  603. </mxCell>
  604. <mxCell id="8jtEEBDGsTIVlHy177NM-17" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="8jtEEBDGsTIVlHy177NM-1" vertex="1">
  605. <mxGeometry x="20" y="520" width="120" height="40" as="geometry" />
  606. </mxCell>
  607. <mxCell id="5i1kjxte3vE6vzkLxOQ8-1" value="" style="group" parent="ErpZGPYhzL6YkgV7Goa3-2" connectable="0" vertex="1">
  608. <mxGeometry x="160" width="160" height="560" as="geometry" />
  609. </mxCell>
  610. <mxCell id="5i1kjxte3vE6vzkLxOQ8-2" value="本地方法栈" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="5i1kjxte3vE6vzkLxOQ8-1" vertex="1">
  611. <mxGeometry width="160" height="560" as="geometry" />
  612. </mxCell>
  613. <mxCell id="5i1kjxte3vE6vzkLxOQ8-3" value="" style="group" parent="5i1kjxte3vE6vzkLxOQ8-1" connectable="0" vertex="1">
  614. <mxGeometry x="20" y="40" width="120" height="240" as="geometry" />
  615. </mxCell>
  616. <mxCell id="5i1kjxte3vE6vzkLxOQ8-4" value="栈帧2" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="5i1kjxte3vE6vzkLxOQ8-3" vertex="1">
  617. <mxGeometry width="120" height="240" as="geometry" />
  618. </mxCell>
  619. <mxCell id="5i1kjxte3vE6vzkLxOQ8-5" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="5i1kjxte3vE6vzkLxOQ8-3" vertex="1">
  620. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  621. </mxCell>
  622. <mxCell id="5i1kjxte3vE6vzkLxOQ8-6" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="5i1kjxte3vE6vzkLxOQ8-3" vertex="1">
  623. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  624. </mxCell>
  625. <mxCell id="5i1kjxte3vE6vzkLxOQ8-7" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="5i1kjxte3vE6vzkLxOQ8-3" vertex="1">
  626. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  627. </mxCell>
  628. <mxCell id="5i1kjxte3vE6vzkLxOQ8-8" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="5i1kjxte3vE6vzkLxOQ8-3" vertex="1">
  629. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  630. </mxCell>
  631. <mxCell id="5i1kjxte3vE6vzkLxOQ8-9" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="5i1kjxte3vE6vzkLxOQ8-3" vertex="1">
  632. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  633. </mxCell>
  634. <mxCell id="5i1kjxte3vE6vzkLxOQ8-10" value="" style="group" parent="5i1kjxte3vE6vzkLxOQ8-1" connectable="0" vertex="1">
  635. <mxGeometry x="20" y="280" width="120" height="240" as="geometry" />
  636. </mxCell>
  637. <mxCell id="5i1kjxte3vE6vzkLxOQ8-11" value="栈帧1" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="5i1kjxte3vE6vzkLxOQ8-10" vertex="1">
  638. <mxGeometry width="120" height="240" as="geometry" />
  639. </mxCell>
  640. <mxCell id="5i1kjxte3vE6vzkLxOQ8-12" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="5i1kjxte3vE6vzkLxOQ8-10" vertex="1">
  641. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  642. </mxCell>
  643. <mxCell id="5i1kjxte3vE6vzkLxOQ8-13" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="5i1kjxte3vE6vzkLxOQ8-10" vertex="1">
  644. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  645. </mxCell>
  646. <mxCell id="5i1kjxte3vE6vzkLxOQ8-14" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="5i1kjxte3vE6vzkLxOQ8-10" vertex="1">
  647. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  648. </mxCell>
  649. <mxCell id="5i1kjxte3vE6vzkLxOQ8-15" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="5i1kjxte3vE6vzkLxOQ8-10" vertex="1">
  650. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  651. </mxCell>
  652. <mxCell id="5i1kjxte3vE6vzkLxOQ8-16" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="5i1kjxte3vE6vzkLxOQ8-10" vertex="1">
  653. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  654. </mxCell>
  655. <mxCell id="5i1kjxte3vE6vzkLxOQ8-17" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="5i1kjxte3vE6vzkLxOQ8-1" vertex="1">
  656. <mxGeometry x="20" y="520" width="120" height="40" as="geometry" />
  657. </mxCell>
  658. <mxCell id="35QjcwPML8CDs9PjG-3v-1" value="" style="group" parent="ErpZGPYhzL6YkgV7Goa3-2" connectable="0" vertex="1">
  659. <mxGeometry y="560" width="800" height="280" as="geometry" />
  660. </mxCell>
  661. <mxCell id="35QjcwPML8CDs9PjG-3v-2" value="堆(JDK1.8前的划分规则)" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#f8cecc;strokeColor=#b85450;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  662. <mxGeometry width="800" height="280" as="geometry" />
  663. </mxCell>
  664. <mxCell id="35QjcwPML8CDs9PjG-3v-3" value="新生代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  665. <mxGeometry x="40" y="40" width="320" height="200" as="geometry" />
  666. </mxCell>
  667. <mxCell id="35QjcwPML8CDs9PjG-3v-4" value="老年代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  668. <mxGeometry x="400" y="40" width="200" height="200" as="geometry" />
  669. </mxCell>
  670. <mxCell id="35QjcwPML8CDs9PjG-3v-5" value="永久代(方法区的实现)" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  671. <mxGeometry x="640" y="40" width="120" height="200" as="geometry" />
  672. </mxCell>
  673. <mxCell id="35QjcwPML8CDs9PjG-3v-6" value="Eden" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  674. <mxGeometry x="80" y="80" width="160" height="160" as="geometry" />
  675. </mxCell>
  676. <mxCell id="35QjcwPML8CDs9PjG-3v-7" value="Survivor" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  677. <mxGeometry x="240" y="80" width="80" height="160" as="geometry" />
  678. </mxCell>
  679. <mxCell id="35QjcwPML8CDs9PjG-3v-8" value="" style="group" parent="35QjcwPML8CDs9PjG-3v-1" connectable="0" vertex="1">
  680. <mxGeometry x="440" y="80" width="120" height="160" as="geometry" />
  681. </mxCell>
  682. <mxCell id="35QjcwPML8CDs9PjG-3v-9" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="35QjcwPML8CDs9PjG-3v-8" vertex="1">
  683. <mxGeometry width="120" height="40" as="geometry" />
  684. </mxCell>
  685. <mxCell id="35QjcwPML8CDs9PjG-3v-10" value="类实例2" style="rounded=1;whiteSpace=wrap;html=1;" parent="35QjcwPML8CDs9PjG-3v-8" vertex="1">
  686. <mxGeometry y="40" width="120" height="40" as="geometry" />
  687. </mxCell>
  688. <mxCell id="35QjcwPML8CDs9PjG-3v-11" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="35QjcwPML8CDs9PjG-3v-8" vertex="1">
  689. <mxGeometry y="120" width="120" height="40" as="geometry" />
  690. </mxCell>
  691. <mxCell id="35QjcwPML8CDs9PjG-3v-12" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="35QjcwPML8CDs9PjG-3v-8" vertex="1">
  692. <mxGeometry y="80" width="120" height="40" as="geometry" />
  693. </mxCell>
  694. <mxCell id="35QjcwPML8CDs9PjG-3v-13" value="From&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  695. <mxGeometry x="240" y="180" width="80" height="60" as="geometry" />
  696. </mxCell>
  697. <mxCell id="35QjcwPML8CDs9PjG-3v-14" value="&lt;div&gt;To&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  698. <mxGeometry x="240" y="120" width="80" height="60" as="geometry" />
  699. </mxCell>
  700. <mxCell id="35QjcwPML8CDs9PjG-3v-15" value="" style="group" parent="35QjcwPML8CDs9PjG-3v-1" connectable="0" vertex="1">
  701. <mxGeometry x="120" y="120" width="80" height="120" as="geometry" />
  702. </mxCell>
  703. <mxCell id="35QjcwPML8CDs9PjG-3v-16" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="35QjcwPML8CDs9PjG-3v-15" vertex="1">
  704. <mxGeometry width="80" height="40" as="geometry" />
  705. </mxCell>
  706. <mxCell id="35QjcwPML8CDs9PjG-3v-17" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="35QjcwPML8CDs9PjG-3v-15" vertex="1">
  707. <mxGeometry y="80" width="80" height="40" as="geometry" />
  708. </mxCell>
  709. <mxCell id="35QjcwPML8CDs9PjG-3v-18" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="35QjcwPML8CDs9PjG-3v-15" vertex="1">
  710. <mxGeometry y="40" width="80" height="40" as="geometry" />
  711. </mxCell>
  712. <mxCell id="35QjcwPML8CDs9PjG-3v-19" value="类实例" style="rounded=1;whiteSpace=wrap;html=1;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  713. <mxGeometry x="260" y="150" width="40" height="20" as="geometry" />
  714. </mxCell>
  715. <mxCell id="35QjcwPML8CDs9PjG-3v-20" value="类信息" style="rounded=1;whiteSpace=wrap;html=1;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  716. <mxGeometry x="660" y="85" width="80" height="40" as="geometry" />
  717. </mxCell>
  718. <mxCell id="35QjcwPML8CDs9PjG-3v-21" value="运行时常量池" style="rounded=1;whiteSpace=wrap;html=1;" parent="35QjcwPML8CDs9PjG-3v-1" vertex="1">
  719. <mxGeometry x="660" y="160" width="80" height="40" as="geometry" />
  720. </mxCell>
  721. <mxCell id="ErpZGPYhzL6YkgV7Goa3-1" value="程序计数器" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;verticalAlign=top;" parent="ErpZGPYhzL6YkgV7Goa3-2" vertex="1">
  722. <mxGeometry x="320" width="480" height="560" as="geometry" />
  723. </mxCell>
  724. <mxCell id="ErpZGPYhzL6YkgV7Goa3-3" value="线程私有数据" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="PymaMMgzeUYcn9CF6Agq-1" vertex="1">
  725. <mxGeometry y="840" width="80" height="40" as="geometry" />
  726. </mxCell>
  727. <mxCell id="ErpZGPYhzL6YkgV7Goa3-4" value="线程共享数据" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" parent="PymaMMgzeUYcn9CF6Agq-1" vertex="1">
  728. <mxGeometry x="720" y="840" width="80" height="40" as="geometry" />
  729. </mxCell>
  730. </root>
  731. </mxGraphModel>
  732. </diagram>
  733. <diagram id="fBzrOEydk4Z-f-bWKl0Q" name="内存布局-JDK1.8开始">
  734. <mxGraphModel dx="1036" dy="655" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
  735. <root>
  736. <mxCell id="0" />
  737. <mxCell id="1" parent="0" />
  738. <mxCell id="BxTmRW5xcAqwGm1VXm5W-30" value="" style="group" parent="1" connectable="0" vertex="1">
  739. <mxGeometry x="40" y="40" width="760" height="880" as="geometry" />
  740. </mxCell>
  741. <mxCell id="nDRPVVJV9QXipEF4w1IV-59" value="线程私有数据" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  742. <mxGeometry y="840" width="80" height="40" as="geometry" />
  743. </mxCell>
  744. <mxCell id="nDRPVVJV9QXipEF4w1IV-60" value="线程共享数据" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  745. <mxGeometry x="80" y="840" width="80" height="40" as="geometry" />
  746. </mxCell>
  747. <mxCell id="nDRPVVJV9QXipEF4w1IV-3" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-30" connectable="0" vertex="1">
  748. <mxGeometry width="160" height="560" as="geometry" />
  749. </mxCell>
  750. <mxCell id="nDRPVVJV9QXipEF4w1IV-4" value="虚拟机栈" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="nDRPVVJV9QXipEF4w1IV-3" vertex="1">
  751. <mxGeometry width="160" height="560" as="geometry" />
  752. </mxCell>
  753. <mxCell id="nDRPVVJV9QXipEF4w1IV-5" value="" style="group" parent="nDRPVVJV9QXipEF4w1IV-3" connectable="0" vertex="1">
  754. <mxGeometry x="20" y="40" width="120" height="240" as="geometry" />
  755. </mxCell>
  756. <mxCell id="nDRPVVJV9QXipEF4w1IV-6" value="栈帧2" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="nDRPVVJV9QXipEF4w1IV-5" vertex="1">
  757. <mxGeometry width="120" height="240" as="geometry" />
  758. </mxCell>
  759. <mxCell id="nDRPVVJV9QXipEF4w1IV-7" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-5" vertex="1">
  760. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  761. </mxCell>
  762. <mxCell id="nDRPVVJV9QXipEF4w1IV-8" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-5" vertex="1">
  763. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  764. </mxCell>
  765. <mxCell id="nDRPVVJV9QXipEF4w1IV-9" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-5" vertex="1">
  766. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  767. </mxCell>
  768. <mxCell id="nDRPVVJV9QXipEF4w1IV-10" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-5" vertex="1">
  769. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  770. </mxCell>
  771. <mxCell id="nDRPVVJV9QXipEF4w1IV-11" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="nDRPVVJV9QXipEF4w1IV-5" vertex="1">
  772. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  773. </mxCell>
  774. <mxCell id="nDRPVVJV9QXipEF4w1IV-12" value="" style="group" parent="nDRPVVJV9QXipEF4w1IV-3" connectable="0" vertex="1">
  775. <mxGeometry x="20" y="280" width="120" height="240" as="geometry" />
  776. </mxCell>
  777. <mxCell id="nDRPVVJV9QXipEF4w1IV-13" value="栈帧1" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="nDRPVVJV9QXipEF4w1IV-12" vertex="1">
  778. <mxGeometry width="120" height="240" as="geometry" />
  779. </mxCell>
  780. <mxCell id="nDRPVVJV9QXipEF4w1IV-14" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-12" vertex="1">
  781. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  782. </mxCell>
  783. <mxCell id="nDRPVVJV9QXipEF4w1IV-15" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-12" vertex="1">
  784. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  785. </mxCell>
  786. <mxCell id="nDRPVVJV9QXipEF4w1IV-16" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-12" vertex="1">
  787. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  788. </mxCell>
  789. <mxCell id="nDRPVVJV9QXipEF4w1IV-17" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-12" vertex="1">
  790. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  791. </mxCell>
  792. <mxCell id="nDRPVVJV9QXipEF4w1IV-18" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="nDRPVVJV9QXipEF4w1IV-12" vertex="1">
  793. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  794. </mxCell>
  795. <mxCell id="nDRPVVJV9QXipEF4w1IV-19" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="nDRPVVJV9QXipEF4w1IV-3" vertex="1">
  796. <mxGeometry x="20" y="520" width="120" height="40" as="geometry" />
  797. </mxCell>
  798. <mxCell id="nDRPVVJV9QXipEF4w1IV-20" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-30" connectable="0" vertex="1">
  799. <mxGeometry x="160" width="160" height="560" as="geometry" />
  800. </mxCell>
  801. <mxCell id="nDRPVVJV9QXipEF4w1IV-21" value="本地方法栈" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;labelBackgroundColor=none;labelBorderColor=none;textShadow=0;fillColor=#d5e8d4;strokeColor=#82b366;" parent="nDRPVVJV9QXipEF4w1IV-20" vertex="1">
  802. <mxGeometry width="160" height="560" as="geometry" />
  803. </mxCell>
  804. <mxCell id="nDRPVVJV9QXipEF4w1IV-22" value="" style="group" parent="nDRPVVJV9QXipEF4w1IV-20" connectable="0" vertex="1">
  805. <mxGeometry x="20" y="40" width="120" height="240" as="geometry" />
  806. </mxCell>
  807. <mxCell id="nDRPVVJV9QXipEF4w1IV-23" value="栈帧2" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="nDRPVVJV9QXipEF4w1IV-22" vertex="1">
  808. <mxGeometry width="120" height="240" as="geometry" />
  809. </mxCell>
  810. <mxCell id="nDRPVVJV9QXipEF4w1IV-24" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-22" vertex="1">
  811. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  812. </mxCell>
  813. <mxCell id="nDRPVVJV9QXipEF4w1IV-25" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-22" vertex="1">
  814. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  815. </mxCell>
  816. <mxCell id="nDRPVVJV9QXipEF4w1IV-26" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-22" vertex="1">
  817. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  818. </mxCell>
  819. <mxCell id="nDRPVVJV9QXipEF4w1IV-27" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-22" vertex="1">
  820. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  821. </mxCell>
  822. <mxCell id="nDRPVVJV9QXipEF4w1IV-28" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="nDRPVVJV9QXipEF4w1IV-22" vertex="1">
  823. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  824. </mxCell>
  825. <mxCell id="nDRPVVJV9QXipEF4w1IV-29" value="" style="group" parent="nDRPVVJV9QXipEF4w1IV-20" connectable="0" vertex="1">
  826. <mxGeometry x="20" y="280" width="120" height="240" as="geometry" />
  827. </mxCell>
  828. <mxCell id="nDRPVVJV9QXipEF4w1IV-30" value="栈帧1" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="nDRPVVJV9QXipEF4w1IV-29" vertex="1">
  829. <mxGeometry width="120" height="240" as="geometry" />
  830. </mxCell>
  831. <mxCell id="nDRPVVJV9QXipEF4w1IV-31" value="局部变量表" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-29" vertex="1">
  832. <mxGeometry x="20" y="40" width="80" height="40" as="geometry" />
  833. </mxCell>
  834. <mxCell id="nDRPVVJV9QXipEF4w1IV-32" value="操作数栈" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-29" vertex="1">
  835. <mxGeometry x="20" y="80" width="80" height="40" as="geometry" />
  836. </mxCell>
  837. <mxCell id="nDRPVVJV9QXipEF4w1IV-33" value="动态链接" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-29" vertex="1">
  838. <mxGeometry x="20" y="120" width="80" height="40" as="geometry" />
  839. </mxCell>
  840. <mxCell id="nDRPVVJV9QXipEF4w1IV-34" value="方法出口" style="rounded=0;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-29" vertex="1">
  841. <mxGeometry x="20" y="160" width="80" height="40" as="geometry" />
  842. </mxCell>
  843. <mxCell id="nDRPVVJV9QXipEF4w1IV-35" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="nDRPVVJV9QXipEF4w1IV-29" vertex="1">
  844. <mxGeometry x="20" y="200" width="80" height="30" as="geometry" />
  845. </mxCell>
  846. <mxCell id="nDRPVVJV9QXipEF4w1IV-36" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="nDRPVVJV9QXipEF4w1IV-20" vertex="1">
  847. <mxGeometry x="20" y="520" width="120" height="40" as="geometry" />
  848. </mxCell>
  849. <mxCell id="nDRPVVJV9QXipEF4w1IV-58" value="程序计数器" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;verticalAlign=top;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  850. <mxGeometry x="630" y="560" width="130" height="280" as="geometry" />
  851. </mxCell>
  852. <mxCell id="nDRPVVJV9QXipEF4w1IV-38" value="堆(JDK1.8后的划分规则)" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#f8cecc;strokeColor=#b85450;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  853. <mxGeometry y="560" width="630" height="280" as="geometry" />
  854. </mxCell>
  855. <mxCell id="nDRPVVJV9QXipEF4w1IV-39" value="新生代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#e1d5e7;strokeColor=#9673a6;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  856. <mxGeometry x="40" y="600" width="320" height="200" as="geometry" />
  857. </mxCell>
  858. <mxCell id="nDRPVVJV9QXipEF4w1IV-40" value="老年代" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#ffe6cc;strokeColor=#d79b00;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  859. <mxGeometry x="400" y="600" width="200" height="200" as="geometry" />
  860. </mxCell>
  861. <mxCell id="nDRPVVJV9QXipEF4w1IV-42" value="Eden" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  862. <mxGeometry x="80" y="640" width="160" height="160" as="geometry" />
  863. </mxCell>
  864. <mxCell id="nDRPVVJV9QXipEF4w1IV-43" value="Survivor" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  865. <mxGeometry x="240" y="640" width="80" height="160" as="geometry" />
  866. </mxCell>
  867. <mxCell id="nDRPVVJV9QXipEF4w1IV-44" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-30" connectable="0" vertex="1">
  868. <mxGeometry x="440" y="640" width="120" height="160" as="geometry" />
  869. </mxCell>
  870. <mxCell id="nDRPVVJV9QXipEF4w1IV-45" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-44" vertex="1">
  871. <mxGeometry width="120" height="40" as="geometry" />
  872. </mxCell>
  873. <mxCell id="nDRPVVJV9QXipEF4w1IV-46" value="类实例2" style="rounded=1;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-44" vertex="1">
  874. <mxGeometry y="40" width="120" height="40" as="geometry" />
  875. </mxCell>
  876. <mxCell id="nDRPVVJV9QXipEF4w1IV-47" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="nDRPVVJV9QXipEF4w1IV-44" vertex="1">
  877. <mxGeometry y="120" width="120" height="40" as="geometry" />
  878. </mxCell>
  879. <mxCell id="nDRPVVJV9QXipEF4w1IV-48" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-44" vertex="1">
  880. <mxGeometry y="80" width="120" height="40" as="geometry" />
  881. </mxCell>
  882. <mxCell id="nDRPVVJV9QXipEF4w1IV-49" value="From&lt;div&gt;&lt;br&gt;&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  883. <mxGeometry x="240" y="740" width="80" height="60" as="geometry" />
  884. </mxCell>
  885. <mxCell id="nDRPVVJV9QXipEF4w1IV-50" value="&lt;div&gt;To&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  886. <mxGeometry x="240" y="680" width="80" height="60" as="geometry" />
  887. </mxCell>
  888. <mxCell id="nDRPVVJV9QXipEF4w1IV-51" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-30" connectable="0" vertex="1">
  889. <mxGeometry x="120" y="680" width="80" height="120" as="geometry" />
  890. </mxCell>
  891. <mxCell id="nDRPVVJV9QXipEF4w1IV-52" value="类实例1" style="rounded=1;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-51" vertex="1">
  892. <mxGeometry width="80" height="40" as="geometry" />
  893. </mxCell>
  894. <mxCell id="nDRPVVJV9QXipEF4w1IV-53" value="..." style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;" parent="nDRPVVJV9QXipEF4w1IV-51" vertex="1">
  895. <mxGeometry y="80" width="80" height="40" as="geometry" />
  896. </mxCell>
  897. <mxCell id="nDRPVVJV9QXipEF4w1IV-54" value="数组" style="rounded=1;whiteSpace=wrap;html=1;" parent="nDRPVVJV9QXipEF4w1IV-51" vertex="1">
  898. <mxGeometry y="40" width="80" height="40" as="geometry" />
  899. </mxCell>
  900. <mxCell id="nDRPVVJV9QXipEF4w1IV-55" value="类实例" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-30" vertex="1">
  901. <mxGeometry x="260" y="710" width="40" height="20" as="geometry" />
  902. </mxCell>
  903. <mxCell id="BxTmRW5xcAqwGm1VXm5W-1" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-30" connectable="0" vertex="1">
  904. <mxGeometry x="320" width="440" height="560" as="geometry" />
  905. </mxCell>
  906. <mxCell id="BxTmRW5xcAqwGm1VXm5W-2" value="方法区(元空间-本地直接内存,不是JVM中的内存)" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;fillColor=#f8cecc;strokeColor=#b85450;" parent="BxTmRW5xcAqwGm1VXm5W-1" vertex="1">
  907. <mxGeometry width="440" height="560" as="geometry" />
  908. </mxCell>
  909. <mxCell id="BxTmRW5xcAqwGm1VXm5W-3" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-1" connectable="0" vertex="1">
  910. <mxGeometry x="34" y="40" width="360" height="320" as="geometry" />
  911. </mxCell>
  912. <mxCell id="BxTmRW5xcAqwGm1VXm5W-4" value="类信息表" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;" parent="BxTmRW5xcAqwGm1VXm5W-3" vertex="1">
  913. <mxGeometry width="360" height="320" as="geometry" />
  914. </mxCell>
  915. <mxCell id="BxTmRW5xcAqwGm1VXm5W-5" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-3" connectable="0" vertex="1">
  916. <mxGeometry x="40" y="40" width="120" height="240" as="geometry" />
  917. </mxCell>
  918. <mxCell id="BxTmRW5xcAqwGm1VXm5W-6" value="Class1" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="BxTmRW5xcAqwGm1VXm5W-5" vertex="1">
  919. <mxGeometry width="120" height="240" as="geometry" />
  920. </mxCell>
  921. <mxCell id="BxTmRW5xcAqwGm1VXm5W-7" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-5" connectable="0" vertex="1">
  922. <mxGeometry x="20" y="40" width="80" height="200" as="geometry" />
  923. </mxCell>
  924. <mxCell id="BxTmRW5xcAqwGm1VXm5W-8" value="类信息" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-7" vertex="1">
  925. <mxGeometry width="80" height="40" as="geometry" />
  926. </mxCell>
  927. <mxCell id="BxTmRW5xcAqwGm1VXm5W-9" value="类常量" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-7" vertex="1">
  928. <mxGeometry y="40" width="80" height="40" as="geometry" />
  929. </mxCell>
  930. <mxCell id="BxTmRW5xcAqwGm1VXm5W-10" value="类加载器" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-7" vertex="1">
  931. <mxGeometry y="80" width="80" height="40" as="geometry" />
  932. </mxCell>
  933. <mxCell id="BxTmRW5xcAqwGm1VXm5W-11" value="类实例引用" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-7" vertex="1">
  934. <mxGeometry y="120" width="80" height="40" as="geometry" />
  935. </mxCell>
  936. <mxCell id="BxTmRW5xcAqwGm1VXm5W-12" value="方法表" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-7" vertex="1">
  937. <mxGeometry y="160" width="80" height="40" as="geometry" />
  938. </mxCell>
  939. <mxCell id="BxTmRW5xcAqwGm1VXm5W-13" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-3" connectable="0" vertex="1">
  940. <mxGeometry x="200" y="40" width="120" height="240" as="geometry" />
  941. </mxCell>
  942. <mxCell id="BxTmRW5xcAqwGm1VXm5W-14" value="Class2" style="rounded=0;whiteSpace=wrap;html=1;verticalAlign=top;" parent="BxTmRW5xcAqwGm1VXm5W-13" vertex="1">
  943. <mxGeometry width="120" height="240" as="geometry" />
  944. </mxCell>
  945. <mxCell id="BxTmRW5xcAqwGm1VXm5W-15" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-13" connectable="0" vertex="1">
  946. <mxGeometry x="20" y="40" width="80" height="200" as="geometry" />
  947. </mxCell>
  948. <mxCell id="BxTmRW5xcAqwGm1VXm5W-16" value="类信息" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-15" vertex="1">
  949. <mxGeometry width="80" height="40" as="geometry" />
  950. </mxCell>
  951. <mxCell id="BxTmRW5xcAqwGm1VXm5W-17" value="类常量" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-15" vertex="1">
  952. <mxGeometry y="40" width="80" height="40" as="geometry" />
  953. </mxCell>
  954. <mxCell id="BxTmRW5xcAqwGm1VXm5W-18" value="类加载器" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-15" vertex="1">
  955. <mxGeometry y="80" width="80" height="40" as="geometry" />
  956. </mxCell>
  957. <mxCell id="BxTmRW5xcAqwGm1VXm5W-19" value="类实例引用" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-15" vertex="1">
  958. <mxGeometry y="120" width="80" height="40" as="geometry" />
  959. </mxCell>
  960. <mxCell id="BxTmRW5xcAqwGm1VXm5W-20" value="方法表" style="rounded=1;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-15" vertex="1">
  961. <mxGeometry y="160" width="80" height="40" as="geometry" />
  962. </mxCell>
  963. <mxCell id="BxTmRW5xcAqwGm1VXm5W-21" value="" style="group" parent="BxTmRW5xcAqwGm1VXm5W-1" connectable="0" vertex="1">
  964. <mxGeometry x="40" y="400" width="360" height="120" as="geometry" />
  965. </mxCell>
  966. <mxCell id="BxTmRW5xcAqwGm1VXm5W-22" value="运行时常量池" style="rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;container=0;" parent="BxTmRW5xcAqwGm1VXm5W-21" vertex="1">
  967. <mxGeometry width="360" height="120" as="geometry">
  968. <mxRectangle width="110" height="30" as="alternateBounds" />
  969. </mxGeometry>
  970. </mxCell>
  971. <mxCell id="BxTmRW5xcAqwGm1VXm5W-23" value="常量1" style="rounded=0;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-21" vertex="1">
  972. <mxGeometry x="40" y="40" width="40" height="40" as="geometry" />
  973. </mxCell>
  974. <mxCell id="BxTmRW5xcAqwGm1VXm5W-24" value="常量2" style="rounded=0;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-21" vertex="1">
  975. <mxGeometry x="280" y="40" width="40" height="40" as="geometry" />
  976. </mxCell>
  977. <mxCell id="BxTmRW5xcAqwGm1VXm5W-25" value="字符串常量" style="rounded=0;whiteSpace=wrap;html=1;" parent="BxTmRW5xcAqwGm1VXm5W-21" vertex="1">
  978. <mxGeometry x="140" y="40" width="80" height="40" as="geometry" />
  979. </mxCell>
  980. <mxCell id="BxTmRW5xcAqwGm1VXm5W-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="BxTmRW5xcAqwGm1VXm5W-1" source="BxTmRW5xcAqwGm1VXm5W-9" target="BxTmRW5xcAqwGm1VXm5W-23" edge="1">
  981. <mxGeometry relative="1" as="geometry">
  982. <Array as="points">
  983. <mxPoint x="20" y="180" />
  984. <mxPoint x="20" y="460" />
  985. </Array>
  986. </mxGeometry>
  987. </mxCell>
  988. <mxCell id="BxTmRW5xcAqwGm1VXm5W-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="BxTmRW5xcAqwGm1VXm5W-1" source="BxTmRW5xcAqwGm1VXm5W-17" target="BxTmRW5xcAqwGm1VXm5W-24" edge="1">
  989. <mxGeometry relative="1" as="geometry">
  990. <Array as="points">
  991. <mxPoint x="420" y="180" />
  992. <mxPoint x="420" y="460" />
  993. </Array>
  994. </mxGeometry>
  995. </mxCell>
  996. </root>
  997. </mxGraphModel>
  998. </diagram>
  999. </mxfile>