Skip to main content
PreparationZone Logo
PreparationZone
Back to Java

Java · Hard · Pro

Safepoints — why STW pauses happen?

JavaMemory & JVMStaff
Model answerPreview

Safepoints

A safepoint is a JVM state where all threads are stopped at known locations so VM operations (GC roots, deoptimization, JVMTI) run safely. Long stop-the-world pauses often wait for one thread…