Moreover, we need to deal with windows where new threads are getting created and SA is not attaching to them. This could be an issue since this means that some threads could still be running while SA is attached to the process. For this, we need to go through multiple iterations of discovering new threads (to capture the new threads which might have gotten spawned in between discovery and actual attach). This technique of multiple iterations is followed in other debuggers like gdb. Though
- relates to
-
JDK-8202884 SA: Attach/detach might fail on Linux if debugee application create/destroy threads during attaching
-
- Resolved
-