RFR 6791551: ExclusiveBind.java has a race condition (original) (raw)
shanliang shanliang.jiang at oracle.com
Tue Feb 4 00:54:20 PST 2014
- Previous message: RFR 6791551: ExclusiveBind.java has a race condition
- Next message: RFR 6791551: ExclusiveBind.java has a race condition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jaroslav,
Your fix should work in most case, but is it better and more reliable to wait a VM event as suggested in the bug? even your timeout is adapted to the test time factory, but the solution still depends to a fixed timeout and a fixed line out.
Shanliang
Jaroslav Bachorik wrote:
Please, review the following test fix:
Issue : https://bugs.openjdk.java.net/browse/JDK-6791551 Webrev: http://cr.openjdk.java.net/~jbachorik/6791551/webrev.00 The fix prevents the situation when the first debuggee has not managed to finish its intialization while the second one is started up thus making the port available for the second debuggee and failing the test. The patch is using the library methods to configure and launch the debuggee and the test waits for the well known string to appear in the first debuggee output before attempting to launch the second debuggee. Thanks, -JB-
- Previous message: RFR 6791551: ExclusiveBind.java has a race condition
- Next message: RFR 6791551: ExclusiveBind.java has a race condition
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]