What flags are enabled by -XX:+AggressiveOpts on Sun JRE 1.6u20?

后端 未结 2 1398
广开言路
广开言路 2020-12-28 13:21

From Sun JRE performance tuning whitepaper, -XX:+AggressiveOpts flag is described as:

Turns on point performance optimizations that are

相关标签:
2条回答
  • 2020-12-28 14:06

    Check out this blog post to find out without needing to dive into the code. http://q-redux.blogspot.com/2011/01/inspecting-hotspot-jvm-options.html

    0 讨论(0)
  • 2020-12-28 14:09

    To check it for particular release:

    java -XX:-AggressiveOpts -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version > no_agg
    java -XX:+AggressiveOpts -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version > agg
    

    And then make diff (diff -U0 no_agg agg).

    For example, jdk 1.7.0_51:

    -     bool AggressiveOpts                           := false           {product}
    +     bool AggressiveOpts                           := true            {product}
    
    -     intx AutoBoxCacheMax                           = 128             {C2 product}
    +     intx AutoBoxCacheMax                           = 20000           {C2 product}
    
    -     intx BiasedLockingStartupDelay                 = 4000            {product}
    +     intx BiasedLockingStartupDelay                 = 500             {product}
    
    -     bool UseFPUForSpilling                         = false           {C2 product}
    +     bool UseFPUForSpilling                         = true            {C2 product}
    

    Jdk 1.8.0:

    -     bool AggressiveOpts                           := false           {product}
    +     bool AggressiveOpts                           := true            {product}
    
    -     intx AutoBoxCacheMax                           = 128             {C2 product}
    +     intx AutoBoxCacheMax                           = 20000           {C2 product}
    
    -     intx BiasedLockingStartupDelay                 = 4000            {product}
    +     intx BiasedLockingStartupDelay                 = 500             {product}
    
    -     bool EliminateAutoBox                          = false           {C2 product}
    +     bool EliminateAutoBox                          = true            {C2 product}
    
    -     bool UseFPUForSpilling                         = false           {C2 product}
    +     bool UseFPUForSpilling                         = true            {C2 product}
    
    0 讨论(0)
提交回复
热议问题