Java??????е??Щ???????
?????????? ???????[ 2016/9/12 10:54:22 ] ??????????????????? Java
??????????????Щ??????????б?
????· ???????С?趨
????· stackMapTable????
????· new?????dup
????· attribute????
????· long??double????????
????· monitorenter??monitorexit????ó???
????· enclosingMethod????
????· localVariableTable??localVariableTypeTable
????· constantValue????
???????????С?趨
????????????С??????N??????????????????N-1????????????????±???0??N-1???????±????1??N-1??????????????±???0?????????????????д???????????????±??0?????????????null??????????????????????????????????λ??????????????г??????С?26???????????±????25.
????stackMapTable????
????stackMapTable??????????????е???????????????????????????1.6??????У???????????????????????????????????????????????????????????????????1.5??????????????????????????????????????????????κι???????????????????е???????????????????????У????????????????????????????????????????????????????????
????new?????dup
????new?????????????dup?????????????ж????????new???????????new????????з?????????dup?????????????????????????????????????????????????????????new???????????????????????????б?????????????????????????2?????????????ù?????????????????????????????????
????atrribute????
????????????????Σ???????????????????????????????????????Щ??????????????????д??????????attribute??????????????????attribute???????????????????????塣???????????????attribute???壬??????岻????????????????μ???????????????????????μ?attribute??????JVM??????С??????????μ?JVM????????????????attribute??????????????????????????????????????????????
????long??double????????
???????long??double???????Щ????????????????????2??λ?????localVariableTable????2??λ?á????ж????????????????dup2??pop2??????dup?????long?????????????
????monitorenter??monitorexit
??????????????????synchronized?????(???????????????????)???????monitorenter??monitorexit?????????????????synchronized????????JVM????????????????????????????μ???????:
????synchronized(obj) {
????//code......
????}
????enclosingMethod????
??????????е?EnclosingMethod??????????????????????????????б????????????????μ??????壺
????public void xx() {
????class N1 {
????}
????}
?????????N1????????л????EnclosingMethod??????????????????xx????????class?????????getEnclosingMethod??????????method????
???????????????????getEnclosingClass??getEnclosingConstructor?У??????????????????
????localVariableTable??localVariableTypeTable????
??????????????????(???????????????????)???????????????????????????????????????????????????????????????????????????????????????????????С?
????ConstantValue????
????????????е?ConstantValue????????????ε???????????public static final ??Щ???????????????????????????????????????????JVM????????????????????????????Ρ?
??????
![](/images/ad-banner/ad-banner.png)
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11