test/hotspot/jtreg/vmTestbase/nsk/stress/except/except012.java
changeset 52640 3a7d49718852
parent 50169 dd501973095c
equal deleted inserted replaced
52639:fa6e4d0216a1 52640:3a7d49718852
   332      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   332      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   333      *
   333      *
   334      * @see #run(String[], PrintStream)
   334      * @see #run(String[], PrintStream)
   335      */
   335      */
   336     public static void main(String args[]) {
   336     public static void main(String args[]) {
   337         Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   337         Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   338             // Last try. If there is some OOME, test should end correctly
   338             // Last try. If there is some OOME, test should end correctly
   339             @Override
   339             @Override
   340             public void uncaughtException(Thread t, Throwable e) {
   340             public void uncaughtException(Thread t, Throwable e) {
   341                 try {
   341                 try {
   342                     pool = null;
   342                     pool = null;