58 private static final int REGISTRY_PORT = TestLibrary.getUnusedRandomPort(); 59 final static public int HOLD_TARGET_TIME = 25000; 60 public static int TEST_FAIL_TIME = HOLD_TARGET_TIME + 30000; 61 public static boolean finished = false; 62 static DGCDeadLock test = new DGCDeadLock(); 63 64 static { 65 System.setProperty("sun.rmi.transport.cleanInterval", "50"); 66 } 67 68 static public void main(String[] args) { 69 70 JavaVM testImplVM = null; 71 72 System.err.println("\nregression test for 4118056\n"); 73 TestLibrary.suggestSecurityManager("java.rmi.RMISecurityManager"); 74 75 try { 76 String options = " -Djava.security.policy=" + 77 TestParams.defaultPolicy + 78 " -XaddExports:java.rmi/sun.rmi.registry=ALL-UNNAMED" + 79 " -XaddExports:java.rmi/sun.rmi.server=ALL-UNNAMED" + 80 " -XaddExports:java.rmi/sun.rmi.transport=ALL-UNNAMED" + 81 " -XaddExports:java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED" + 82 " -Djava.rmi.dgc.leaseValue=500000" + 83 " -Dsun.rmi.dgc.checkInterval=" + 84 (HOLD_TARGET_TIME - 5000) + 85 " -Drmi.registry.port=" + REGISTRY_PORT + 86 "" ; 87 88 testImplVM = new JavaVM("TestImpl", options, ""); 89 testImplVM.start(); 90 91 synchronized (test) { 92 Thread t = new Thread(test); 93 t.setDaemon(true); 94 t.start(); 95 96 // wait for the remote calls to take place 97 test.wait(TEST_FAIL_TIME); 98 } 99 100 if (!finished) { 101 TestLibrary.bomb("Test failed, had exception or exercise" + | 58 private static final int REGISTRY_PORT = TestLibrary.getUnusedRandomPort(); 59 final static public int HOLD_TARGET_TIME = 25000; 60 public static int TEST_FAIL_TIME = HOLD_TARGET_TIME + 30000; 61 public static boolean finished = false; 62 static DGCDeadLock test = new DGCDeadLock(); 63 64 static { 65 System.setProperty("sun.rmi.transport.cleanInterval", "50"); 66 } 67 68 static public void main(String[] args) { 69 70 JavaVM testImplVM = null; 71 72 System.err.println("\nregression test for 4118056\n"); 73 TestLibrary.suggestSecurityManager("java.rmi.RMISecurityManager"); 74 75 try { 76 String options = " -Djava.security.policy=" + 77 TestParams.defaultPolicy + 78 " --add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED" + 79 " --add-exports java.rmi/sun.rmi.server=ALL-UNNAMED" + 80 " --add-exports java.rmi/sun.rmi.transport=ALL-UNNAMED" + 81 " --add-exports java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED" + 82 " -Djava.rmi.dgc.leaseValue=500000" + 83 " -Dsun.rmi.dgc.checkInterval=" + 84 (HOLD_TARGET_TIME - 5000) + 85 " -Drmi.registry.port=" + REGISTRY_PORT + 86 "" ; 87 88 testImplVM = new JavaVM("TestImpl", options, ""); 89 testImplVM.start(); 90 91 synchronized (test) { 92 Thread t = new Thread(test); 93 t.setDaemon(true); 94 t.start(); 95 96 // wait for the remote calls to take place 97 test.wait(TEST_FAIL_TIME); 98 } 99 100 if (!finished) { 101 TestLibrary.bomb("Test failed, had exception or exercise" + |