debugging at safepoints

Hallo,I'm using JDI and i would like to know if all my java threads are suspended at a safepoint when a breakpoint is reached. (Suspend Policy: SUSPEND_ALL)M.
[181 byte] By [Matzericha] at [2007-9-29 10:54:20]
# 1

> if all my java

> threads are suspended at a safepoint when a breakpoint

> is reached. (Suspend Policy: SUSPEND_ALL)

Yes. When a thread in the debugee hits a breakpoint

having a suspend policy of SUSPEND_ALL, all Java threads

are requested to self-suspend at the next safepoint. As

the other threads check in at the safepoint, they suspend

there. Any native methods that may be executing will be

suspended when they transition back to Java code.

Note: I am using the term safepoint here from the VM point

of view, where the world is consistent at safepoints and

can be inconsistent (EG: a GC is in the middle of relocating

an object) when outside a safepoint.

debugging_teama at 2007-7-15 0:19:01 > top of Java-index,Archived Forums,Debugging Tools and Techniques...