Codereview request: 8007710 runtime/7158988/ fails with com.sun.jdi.VMDisconnectedException: Connection closed

shanliang shanliang.jiang at
Tue Feb 11 06:13:46 PST 2014

Hi ,

The problem could be that FieldMonitor did not have enough time to 
"addFieldWatch" but the vm to monitor (TestPostFieldModification) was 
already ended.

So we should make sure that TestPostFieldModification exits after 
FieldMonitor has done necessary. The solution proposed here is that 
FieldMonitor creates a file after adding field watching, and 
TestPostFieldModification quits only after finding the file.




More information about the hotspot-dev mailing list