< prev index next >

test/hotspot/jtreg/runtime/handshake/HandshakeWalkExitTest.java

Print this page
rev 47490 : Add Thread Local handshakes and thread local polling
rev 47492 : [mq]: Coleen-n-Test-Cleanup-4


   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test HandshakeWalkExitTest

  27  * @library /testlibrary /test/lib
  28  * @build HandshakeWalkExitTest
  29  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  30  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  31  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI HandshakeWalkExitTest
  32  */
  33 
  34 import jdk.test.lib.Asserts;
  35 import sun.hotspot.WhiteBox;
  36 
  37 public class HandshakeWalkExitTest  implements Runnable {
  38 
  39     @Override
  40     public void run() {
  41     }
  42 
  43     static volatile boolean exit_now = false;
  44     static Thread[] threads;
  45 
  46     public static void main(String... args) throws Exception {




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test HandshakeWalkExitTest
  27  * @summary This test tries to stress the handshakes with new and exiting threads
  28  * @library /testlibrary /test/lib
  29  * @build HandshakeWalkExitTest
  30  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  31  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  32  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI HandshakeWalkExitTest
  33  */
  34 
  35 import jdk.test.lib.Asserts;
  36 import sun.hotspot.WhiteBox;
  37 
  38 public class HandshakeWalkExitTest  implements Runnable {
  39 
  40     @Override
  41     public void run() {
  42     }
  43 
  44     static volatile boolean exit_now = false;
  45     static Thread[] threads;
  46 
  47     public static void main(String... args) throws Exception {


< prev index next >