test/runtime/7158988/TestPostFieldModification.java

Print this page

        

*** 34,43 **** --- 34,54 ---- public void run() { test.value="test"; for(int i = 0; i < 10; i++) { test.value += new String("_test"); } + + // JDK-8007710 + System.out.println("---TestPostFieldModification-run waiting to exit ..."); + try { + System.in.read(); + } catch (Exception e) { + System.out.println("---TestPostFieldModification-run got unexpected: "+e); + e.printStackTrace(); + } + + System.out.println("---TestPostFieldModification-run bye!"); } }.start(); // this thread is used to trigger a gc Thread d = new Thread() {