< prev index next >

test/jdk/java/net/ServerSocket/AcceptCauseFileDescriptorLeak.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2006, 2024, 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
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

@@ -29,11 +29,12 @@
   * @key intermittent
   * @summary Configuring unconnected Socket before passing to implAccept
   *          can cause fd leak.
   *          This test may fail intermittently if foreign processes will
   *          try to establish connection to the test server socket.
-  * @requires (os.family != "windows")
+  * @requires os.family != "windows"
+  * @requires vm.flagless
   * @library /test/lib
   * @build jdk.test.lib.Utils
   *        jdk.test.lib.Asserts
   *        jdk.test.lib.JDKToolFinder
   *        jdk.test.lib.JDKToolLauncher
< prev index next >