Safepointing in HotSpot

Ahmed Khawaja ahmed.khawaja at oracle.com
Fri Aug 7 20:44:39 UTC 2015


Greetings,

             I am looking into when HotSpot decides to insert code for 
safepointing. My goal is to understand the decision process of when a 
safepoint is inserted and also to relay to an analysis tool that a 
certain instruction was inserted due to safepointing. I am looking into 
what criteria merit the insertion of a safepoint and how code can be 
optimized to avoid that. Can anyone point me in the direction of the 
source code in HotSpot responsible for this? I am able to identify 
manually the code sequences that result in a safepoint and realize they 
must be inserted somewhere before code motion is applied since they 
don't always show up as contiguous instructions.

Thank you,
    Ahemd Khawaja


More information about the hotspot-compiler-dev mailing list