11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @key nmt regression
27 * @bug 8005936
28 * @summary Make sure PrintNMTStatistics works on normal JVM exit
29 * @library /testlibrary /testlibrary/whitebox
30 * @build PrintNMTStatistics
31 * @ignore
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox
33 * sun.hotspot.WhiteBox$WhiteBoxPermission
34 * @run main PrintNMTStatistics
35 */
36
37 import com.oracle.java.testlibrary.*;
38
39 import java.util.regex.Matcher;
40 import java.util.regex.Pattern;
41 import sun.hotspot.WhiteBox;
42
43 public class PrintNMTStatistics {
44
45 public static void main(String args[]) throws Exception {
46
47 // We start a new java process running with an argument and use WB API to ensure
48 // we have data for NMT on VM exit
49 if (args.length > 0) {
50 return;
51 }
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @key nmt regression
27 * @bug 8005936
28 * @summary Make sure PrintNMTStatistics works on normal JVM exit
29 * @library /testlibrary /testlibrary/whitebox
30 * @build PrintNMTStatistics
31 * @run main ClassFileInstaller sun.hotspot.WhiteBox
32 * sun.hotspot.WhiteBox$WhiteBoxPermission
33 * @run main PrintNMTStatistics
34 */
35
36 import com.oracle.java.testlibrary.*;
37
38 import java.util.regex.Matcher;
39 import java.util.regex.Pattern;
40 import sun.hotspot.WhiteBox;
41
42 public class PrintNMTStatistics {
43
44 public static void main(String args[]) throws Exception {
45
46 // We start a new java process running with an argument and use WB API to ensure
47 // we have data for NMT on VM exit
48 if (args.length > 0) {
49 return;
50 }
|