Safepointing in HotSpot

Christian Thalinger christian.thalinger at oracle.com
Fri Aug 28 17:19:28 UTC 2015


It’s been 20 days so I’m sure you found out yourself already.  If not, start with SafePointNode in callnode.hpp and work your way from there.

> On Aug 7, 2015, at 10:44 AM, Ahmed Khawaja <ahmed.khawaja at oracle.com> wrote:
> 
> 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