{"id":99,"date":"2021-04-26T13:01:35","date_gmt":"2021-04-26T05:01:35","guid":{"rendered":"http:\/\/112.124.66.68\/?p=99"},"modified":"2021-04-26T13:01:35","modified_gmt":"2021-04-26T05:01:35","slug":"java%e5%86%85%e5%ad%98%e7%bb%93%e6%9e%84","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2021\/04\/26\/java%e5%86%85%e5%ad%98%e7%bb%93%e6%9e%84\/","title":{"rendered":"Java\u5185\u5b58\u7ed3\u6784"},"content":{"rendered":"<p>\u65b9\u6cd5\u533a\u548c\u5806\u662f\u6240\u6709\u7ebf\u7a0b<span style=\"color: #ff0000;\">\u5171\u4eab<\/span>\u7684\u5185\u5b58\u533a\u57df\uff1b<br \/>\n\u800cjava\u6808\u3001\u672c\u5730\u65b9\u6cd5\u6808\u548c\u7a0b\u5e8f\u5458\u8ba1\u6570\u5668\u662f\u8fd0\u884c\u662f\u7ebf\u7a0b<span style=\"color: #ff0000;\">\u79c1\u6709<\/span>\u7684\u5185\u5b58\u533a\u57df\u3002<\/p>\n<p><span style=\"color: #ff6600;\">Java\u5806\uff08Heap\uff09<\/span>,\u662fJava\u865a\u62df\u673a\u6240\u7ba1\u7406\u7684\u5185\u5b58\u4e2d\u6700\u5927\u7684\u4e00\u5757\u3002Java\u5806\u662f\u88ab\u6240\u6709\u7ebf\u7a0b\u5171\u4eab\u7684\u4e00\u5757\u5185\u5b58\u533a\u57df\uff0c\u5728\u865a\u62df\u673a\u542f\u52a8\u65f6\u521b\u5efa\u3002\u6b64\u5185\u5b58\u533a\u57df\u7684\u552f\u4e00\u76ee\u7684\u5c31\u662f\u5b58\u653e\u5bf9\u8c61\u5b9e\u4f8b\uff0c\u51e0\u4e4e\u6240\u6709\u7684\u5bf9\u8c61\u5b9e\u4f8b\u90fd\u5728\u8fd9\u91cc\u5206\u914d\u5185\u5b58\u3002<!--more--><\/p>\n<p><span style=\"color: #ff6600;\">\u65b9\u6cd5\u533a\uff08Method Area\uff09<\/span>,\u65b9\u6cd5\u533a\uff08Method Area\uff09\u4e0eJava\u5806\u4e00\u6837\uff0c\u662f\u5404\u4e2a\u7ebf\u7a0b\u5171\u4eab\u7684\u5185\u5b58\u533a\u57df\uff0c\u5b83\u7528\u4e8e\u5b58\u50a8\u5df2\u88ab\u865a\u62df\u673a\u52a0\u8f7d\u7684\u7c7b\u4fe1\u606f\u3001\u5e38\u91cf\u3001\u9759\u6001\u53d8\u91cf\u3001\u5373\u65f6\u7f16\u8bd1\u5668\u7f16\u8bd1\u540e\u7684\u4ee3\u7801\u7b49\u6570\u636e<\/p>\n<p><span style=\"color: #ff6600;\">\u7a0b\u5e8f\u8ba1\u6570\u5668\uff08Program Counter Register\uff09<\/span>,\u7a0b\u5e8f\u8ba1\u6570\u5668\uff08Program Counter Register\uff09\u662f\u4e00\u5757\u8f83\u5c0f\u7684\u5185\u5b58\u7a7a\u95f4\uff0c\u5b83\u7684\u4f5c\u7528\u53ef\u4ee5\u770b\u505a\u662f\u5f53\u524d\u7ebf\u7a0b\u6240\u6267\u884c\u7684\u5b57\u8282\u7801\u7684\u884c\u53f7\u6307\u793a\u5668\u3002<\/p>\n<p><span style=\"color: #ff6600;\">JVM\u6808\uff08JVM Stacks\uff09<\/span>,\u4e0e\u7a0b\u5e8f\u8ba1\u6570\u5668\u4e00\u6837\uff0cJava\u865a\u62df\u673a\u6808\uff08Java Virtual Machine Stacks\uff09\u4e5f\u662f<span style=\"color: #ff0000;\">\u7ebf\u7a0b\u79c1\u6709<\/span>\u7684\uff0c\u5b83\u7684\u751f\u547d\u5468\u671f\u4e0e\u7ebf\u7a0b\u76f8\u540c\u3002\u865a\u62df\u673a\u6808\u63cf\u8ff0\u7684\u662fJava\u65b9\u6cd5\u6267\u884c\u7684\u5185\u5b58\u6a21\u578b\uff1a\u6bcf\u4e2a\u65b9\u6cd5\u88ab\u6267\u884c\u7684\u65f6\u5019\u90fd\u4f1a\u540c\u65f6\u521b\u5efa\u4e00\u4e2a\u6808\u5e27\uff08Stack Frame\uff09\u7528\u4e8e\u5b58\u50a8\u5c40\u90e8\u53d8\u91cf\u8868\u3001\u64cd\u4f5c\u6808\u3001\u52a8\u6001\u94fe\u63a5\u3001\u65b9\u6cd5\u51fa\u53e3\u7b49\u4fe1\u606f\u3002\u6bcf\u4e00\u4e2a\u65b9\u6cd5\u88ab\u8c03\u7528\u76f4\u81f3\u6267\u884c\u5b8c\u6210\u7684\u8fc7\u7a0b\uff0c\u5c31\u5bf9\u5e94\u7740\u4e00\u4e2a\u6808\u5e27\u5728\u865a\u62df\u673a\u6808\u4e2d\u4ece\u5165\u6808\u5230\u51fa\u6808\u7684\u8fc7\u7a0b\u3002<\/p>\n<p><span style=\"color: #ff6600;\">\u672c\u5730\u65b9\u6cd5\u6808\uff08Native Method Stacks\uff09<\/span>,\u672c\u5730\u65b9\u6cd5\u6808\uff08Native Method Stacks\uff09\u4e0e\u865a\u62df\u673a\u6808\u6240\u53d1\u6325\u7684\u4f5c\u7528\u662f\u975e\u5e38\u76f8\u4f3c\u7684\uff0c\u5176\u533a\u522b\u4e0d\u8fc7\u662f\u865a\u62df\u673a\u6808\u4e3a\u865a\u62df\u673a\u6267\u884cJava\u65b9\u6cd5\uff08\u4e5f\u5c31\u662f\u5b57\u8282\u7801\uff09\u670d\u52a1\uff0c\u800c\u672c\u5730\u65b9\u6cd5\u6808\u5219\u662f\u4e3a\u865a\u62df\u673a\u4f7f\u7528\u5230\u7684Native\u65b9\u6cd5\u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b9\u6cd5\u533a\u548c\u5806\u662f\u6240\u6709\u7ebf\u7a0b\u5171\u4eab\u7684\u5185\u5b58\u533a&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":325,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[],"class_list":["post-99","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-jvm"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media\/325"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}