jdk/src/windows/classes/sun/tools/attach/WindowsVirtualMachine.java
public void detach() throws IOException {
synchronized (this) {
if (hProcess != -1) {
closeProcess(hProcess);
hProcess = -1;
}
}
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.