test/hotspot/jtreg/vmTestbase/nsk/stress/except/except011.java
changeset 52640 3a7d49718852
parent 52483 5643a5bff514
equal deleted inserted replaced
52639:fa6e4d0216a1 52640:3a7d49718852
   264      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   264      * (The stream <code>out</code> is assigned to <code>System.out</code> here.)
   265      *
   265      *
   266      * @see #run(String[], PrintStream)
   266      * @see #run(String[], PrintStream)
   267      */
   267      */
   268     public static void main(String args[]) {
   268     public static void main(String args[]) {
   269         Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   269         Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
   270             // Last try. If there is some OOME, test should end correctly
   270             // Last try. If there is some OOME, test should end correctly
   271             @Override
   271             @Override
   272             public void uncaughtException(Thread t, Throwable e) {
   272             public void uncaughtException(Thread t, Throwable e) {
   273                 try {
   273                 try {
   274                     pool = null;
   274                     pool = null;