< prev index next >

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

Print this page
rev 47821 : imported patch 10.09.open.TLH_hang_fix.rehn

*** 40,65 **** @Override public void run() { } static volatile boolean exit_now = false; - static Thread[] threads; public static void main(String... args) throws Exception { ! int testRuns = 100; ! int testThreads = 500; HandshakeWalkExitTest test = new HandshakeWalkExitTest(); - threads = new Thread[64]; - Runnable hser = new Runnable(){ public void run(){ WhiteBox wb = WhiteBox.getWhiteBox(); while(!exit_now) { wb.handshakeWalkStack(null, true); - try { Thread.sleep(1); } catch(Exception e) {} } } }; Thread hst = new Thread(hser); hst.start(); --- 40,61 ---- @Override public void run() { } static volatile boolean exit_now = false; public static void main(String... args) throws Exception { ! int testRuns = 20; ! int testThreads = 128; HandshakeWalkExitTest test = new HandshakeWalkExitTest(); Runnable hser = new Runnable(){ public void run(){ WhiteBox wb = WhiteBox.getWhiteBox(); while(!exit_now) { wb.handshakeWalkStack(null, true); } } }; Thread hst = new Thread(hser); hst.start();
< prev index next >