Search code examples
javajava-8jvm-hotspot

How to turn off OSR compilation


I want to turn off OSR compilation and see the result of standard JIT compilation done by C1. I have restricted compilation to C1 using -XX:TieredStopAtLevel=1, however I couldn't find anything on how to turn off OSR compilation. Is it even possible?


Solution

  •  -XX:-UseOnStackReplacement
    

    there is a command line argument for that.