{"id":240,"date":"2018-09-21T19:55:27","date_gmt":"2018-09-21T11:55:27","guid":{"rendered":"http:\/\/kaispace.cn\/?p=240"},"modified":"2018-09-21T19:55:27","modified_gmt":"2018-09-21T11:55:27","slug":"java%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%ac%94%e8%ae%b0%ef%bc%882%ef%bc%89%e4%b9%8b%e5%86%85%e5%ad%98%e5%88%86%e9%85%8d%e5%8f%8a%e5%bc%95%e7%94%a8%e5%af%b9%e8%b1%a1","status":"publish","type":"post","link":"https:\/\/blog.kaispace.cn\/?p=240","title":{"rendered":"Java\u865a\u62df\u673a\u7b14\u8bb0\uff082\uff09\u4e4b\u5185\u5b58\u5206\u914d\u53ca\u5f15\u7528\u5bf9\u8c61"},"content":{"rendered":"<p>\u5185\u5b58\u5206\u914d\u65b9\u5f0f\u4e3b\u8981\u5206\u4e3a\u4e24\u79cd \u5206\u522b\u662f <strong>\u6307\u9488\u78b0\u649e<\/strong> \u548c <strong>\u7a7a\u95f2\u5217\u8868<\/strong>\u3002<\/p>\n<blockquote><p><strong>\u6307\u9488\u78b0\u649e<\/strong>\u6307\u7684\u662f\u7ebf\u6027\u7a7a\u95f4\uff0c\u901a\u8fc7\u79fb\u52a8\u6307\u9488\u5206\u914d\u5185\u5b58\u3002<\/p>\n<p><strong>\u7a7a\u95f2\u5217\u8868<\/strong>\u6307\u7684\u662f\u4e0d\u540c\u7684\u5185\u5b58\u5757\uff0c\u901a\u8fc7\u6307\u9488\u94fe\u63a5\u5230\u4e00\u5757\u5b8c\u6574\u4ece\u800c\u7ee7\u7eed\u5206\u914d\u3002<\/p><\/blockquote>\n<p>\u89e3\u51b3\u5185\u5b58\u5206\u914d\u5b58\u5728\u7ebf\u7a0b\u4e0d\u5b89\u5168\u7684\u65b9\u6cd5\u662f\uff1a<\/p>\n<blockquote><p>1\u3001\u91c7\u7528CAS\u673a\u5236\uff0b\u5931\u8d25\u91cd\u8bd5\u3002<\/p>\n<p>2\u3001\u4e3a\u6bcf\u4e2a\u7ebf\u7a0b\u9884\u5148\u5206\u914d\u4e00\u5c0f\u5757\u5185\u5b58\uff0c\u79f0\u4e3a<strong>\u672c\u5730\u7ebf\u7a0b\u5206\u914d\u7f13\u51b2\u5185\u5b58<\/strong>\uff0c\u865a\u62df\u673a\u5728\u8fd9\u5757\u5185\u5b58\u4e0a\u8d4b\u521d\u503c\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>\u5bf9\u8c61\u5728\u5185\u5b58\u4e2d\u7684\u5b58\u50a8\u5e03\u5c40\u53ef\u5206\u4e3a <strong>\u5bf9\u8c61\u5934\uff08header\uff09<\/strong>\u548c<strong>\u5b9e\u4f8b\u6570\u636e\uff08Instance Data\uff09<\/strong>\u548c<strong>\u5bf9\u9f50\u586b\u5145\uff08Padding\uff09<\/strong><\/p>\n<blockquote><p><strong>\u5bf9\u8c61\u5934<\/strong>\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\uff0c\u4e00\u90e8\u5206\u7528\u4e8e\u5b58\u50a8\u5bf9\u8c61\u81ea\u8eab\u7684\u8fd0\u884c\u65f6\u6570\u636e\u5982hashcode,GC\u5206\u4ee3\u5e74\u9f84,\u9501\u72b6\u6001,\u7ebf\u7a0b\u6301\u6709\u7684\u9501\u3001\u504f\u5411\u7ebf\u7a0bID\u3001\u504f\u5411\u65f6\u95f4\u6233\u7b49\u7b49\uff0c\u79f0\u4e3a\u201cMarkWord\u201d<\/p>\n<p>\u53e6\u4e00\u90e8\u5206\u4e3a\u7c7b\u578b\u6307\u9488\uff0c\u6307\u5411\u5b83\u7c7b\u5143\u6570\u636e\u7684\u6307\u9488\u3001\u4ece\u800c\u786e\u5b9a\u5bf9\u8c61\u662f\u5c5e\u4e8e\u54ea\u4e00\u4e2a\u7c7b\u3002\uff08\u82e5\u662fJava\u6570\u7ec4\u8fd8\u9700\u8981\u4e00\u5757\u7a7a\u95f4\u5b58\u50a8\u6570\u636e\u5927\u5c0f\uff0c\u56e0\u4e3a\u865a\u62df\u673a\u53ea\u80fd\u77e5\u9053\u5bf9\u8c61\u5927\u5c0f\uff09<\/p>\n<p><strong>\u5bf9\u9f50\u586b\u5145<\/strong>\u53ea\u5728\u9700\u8981\u7684\u65f6\u5019\u5b58\u5728\uff0c\u76ee\u7684\u662f\u586b\u5145\u5bf9\u8c61\u5927\u5c0f\u81f38\u5b57\u8282\u7684\u6574\u6570\u500d\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><strong>\u5bf9\u8c61\u7684\u8bbf\u95ee\u5b9a\u4f4d<\/strong><\/p>\n<p>\u5728\u6808\u4e2d\u7684Ref\u53ef\u901a\u8fc7<strong>\u53e5\u67c4<\/strong>\u6216\u8005<strong>\u76f4\u63a5\u6307\u9488<\/strong>\u6307\u5411\u5bf9\u8c61<\/p>\n<p>\u53e5\u67c4\u65b9\u5f0f:Ref-&gt;\u53e5\u67c4\u6c60\u4e2d\u7684\u53e5\u67c4-&gt;\u5bf9\u8c61\u5b9e\u4f8b\u6570\u636e\uff08Java\u5806\uff09<\/p>\n<p>-&gt;\u7c7b\u578b\u6570\u636e\uff08\u65b9\u6cd5\u533a\uff09<\/p>\n<p>\u76f4\u63a5\u6307\u9488\u65b9\u5f0f:Ref-&gt;\u5bf9\u8c61\u5b9e\u4f8b\u6570\u636e\uff08Java\u5806\uff09-&gt;\u5bf9\u8c61\u7c7b\u578b\u6570\u636e\uff08\u65b9\u6cd5\u533a\uff09<\/p>\n<blockquote><p><strong>\u53e5\u67c4<\/strong>\u91c7\u7528\u4e8c\u6b21\u5b9a\u4f4d \u5728\u5bf9\u8c61\u79fb\u52a8\u65f6\uff0c\u53ea\u9700\u8981\u6539\u52a8\u53e5\u67c4\u800c\u4e0d\u9700\u8981\u6539\u52a8Ref<\/p>\n<p><strong>\u76f4\u63a5\u6307\u9488<\/strong>\u76f4\u63a5\u8bbf\u95ee\u5bf9\u8c61\uff0c\u6548\u7387\u66f4\u9ad8\uff0c\u4e0d\u7528\u4e8c\u6b21\u5bfb\u5740\u3002<\/p><\/blockquote>\n<hr \/>\n<p>\u7ed9\u6bcf\u4e2a\u7ebf\u7a0b\u7684\u5185\u5b58\u6709\u9650\uff08Window\u9650\u5236\u6bcf\u4e2a\u7ebf\u7a0b\u6700\u591a2G\uff09\u82e5\u56e0\u7ebf\u7a0b\u8fc7\u591a\u5bfc\u81f4\u7684SOF\u5f02\u5e38\uff0c\u53ef\u91c7\u53d6\u51cf\u5c11\u6700\u5927\u5806\u548c\u5206\u914d\u7ed9\u7ebf\u7a0b\u7684\u6808\u5bb9\u91cf\u6765\u83b7\u5f97\u66f4\u591a\u7ebf\u7a0b\u3002<\/p>\n<p>\u65b9\u6cd5\u533a\u548c\u8fd0\u884c\u65f6\u5e38\u91cf\u6ea2\u51fa\u53ea\u80fd\u901a\u8fc7\u7f29\u51cf\u5176\u4ed6\u5185\u5b58\u533a\u57df\u6216\u8005\u4f18\u5316GC\u5bf9\u65b9\u6cd5\u533a\u7684\u56de\u6536\u6765\u4fdd\u8bc1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5185\u5b58\u5206\u914d\u65b9\u5f0f\u4e3b\u8981\u5206\u4e3a\u4e24\u79cd \u5206\u522b\u662f \u6307\u9488\u78b0\u649e \u548c \u7a7a\u95f2\u5217\u8868\u3002 \u6307\u9488\u78b0\u649e\u6307\u7684\u662f\u7ebf\u6027\u7a7a\u95f4\uff0c\u901a\u8fc7\u79fb\u52a8\u6307\u9488\u5206\u914d\u5185\u5b58\u3002 \u7a7a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/posts\/240"}],"collection":[{"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=240"}],"version-history":[{"count":0,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}