--- a/test/jdk/java/net/Socket/DeadlockTest.java Tue Mar 27 19:29:46 2018 +0100
+++ b/test/jdk/java/net/Socket/DeadlockTest.java Tue Mar 27 13:22:40 2018 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,8 @@
* @bug 4176738
* @summary Make sure a deadlock situation
* would not occur
+ * @run main DeadlockTest
+ * @run main/othervm -Djava.net.preferIPv4Stack=true DeadlockTest
*/
import java.net.*;