???????????????£?Java ?? C++ ?????
??????Ben Maurer:
????????????????????????????????????????????????
???????????????????????“??н?”??????????????“????????????????????”???????????????????????????????????????????????????????????????????????JVM????????????????????檔
???????????Java?У????е?????????vtable?????C++?????POD????ж??????????????е?Java????????????????????????????JVM???????????????????????????Ρ?????? == ??????????? == ??????????????棬Java 7 ??64λ??????????????????????????????????
?????????????????Java?У????е??????????C++?У????????????????????????????????????????????????????????????????????????????
?????????????á???Java?У?JNI?????????????????????????????????С???????????????????????????C++??????????????????
??????Ч???????????磬??Java??????????????????????д???XML??????????????String???????char[]???????????????????????????????
?????麯???????????JVM?У????????е????????????麯?????á???????????????麯????????????????£?JVM????????????????譚??????????????????????
????????????????????????????????? ?????д?????????????????Java???????????
?????????????????????????????????????У????????????н??ж?????GC???????????Java??C++???????蹵???????????????????????????????????L2??????????????????????????????????????????????
??????Ч??????????????????????????????????????????????????????????????????д?ú???Java??????????????????????
??????Todd Lipcon
????????????Ben Maurer??hey Ben?????????м???С?????
???????μ?JVM?У???????????????????a???????????b??????????????????????????????Ч?????????????????????????????????????????????????????е??????????????????????“????????bump the pointer??”??????????C?е??????
???????????
??????????? Escape Analysis??????????????????????????????Χ??????????????????????????????????????????????????????????????????
????????????bump the point????????Java????????????????????ù?????涼?????????????е???汻???????????м???????????????????????????????????????????????????п?????????????????С??????????????????“??????”??
????????????????????????????????????????????????????????仺??????TLAB???????????????????????????Java??С?????????е?????C???????? malloc() ???????????? malloc ??????Google?? tcmalloc?????????????????????????C?????????????ж????????????·????????Щ?????????????
??????????????????麯????????????????Java???Щ??????????????????C???á???????C???????????????????????????????????????????????е??????????????????Java?????????????????????????????????????????????????????????仹?????á???????У?????????C++???麯?????????Ч??C++?麯???????????????????????JIT???????????????????????????????μ????????????????????????????????????
?????°汾??GCC???Щ????????????“????????”??“????????”??http://gcc.gnu.org/wiki/LinkTime…??????????????Χ?????????????????????????????????????????????????????????????????????????????????zlib??????????????????????????????????????????????????????