GC机制总结

if 放入堆的对象>edan

    进行MinorGC前判断

    if edan+s<oldremain||

    历次平均进入老年代大小<oldremain

        MinorGC

    else FullGC


oldremain:老年代最大连续空闲空间|

反汇编:

hsdis-amd64.dll

在64位Windows上build的hsdis,
放在$JAVA_HOME/jre/bin/server(或$JAVA_HOME/jre/bin/client)下即可。

-XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly -Xcomp -XX:CompileThreshold=1 -XX:+PrintCompilation -XX:CompileCommand="compileonly Usual main"

    

猜你喜欢

转载自blog.csdn.net/bysoulwarden/article/details/80150769
今日推荐