src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/Tool.java
changeset 58389 31524b016783
parent 47216 71c04702a3d5
equal deleted inserted replaced
58388:a819c684964b 58389:31524b016783
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   114    protected void execute(String[] args) {
   114    protected void execute(String[] args) {
   115        int returnStatus = 1;
   115        int returnStatus = 1;
   116 
   116 
   117        try {
   117        try {
   118            returnStatus = start(args);
   118            returnStatus = start(args);
       
   119        } catch (Throwable t) {
       
   120            t.printStackTrace(System.err);
   119        } finally {
   121        } finally {
   120            stop();
   122            stop();
   121        }
   123        }
   122 
   124 
   123        // Exit with 0 or 1
   125        // Exit with 0 or 1