changeset 8843:0298ebbaf3b8

8028433: [TESTBUG] add -XX:+UsePerfData to some sun.management tests Reviewed-by: sla, egahlin
author jbachorik
date Mon, 18 Nov 2013 16:20:40 +0100
parents d842131d12d8
children c2b56fe61626
files test/sun/management/HotspotClassLoadingMBean/GetClassLoadingTime.java test/sun/management/HotspotClassLoadingMBean/GetInitializedClassCount.java test/sun/management/HotspotClassLoadingMBean/GetLoadedClassSize.java test/sun/management/HotspotClassLoadingMBean/GetMethodDataSize.java test/sun/management/HotspotClassLoadingMBean/GetUnloadedClassSize.java test/sun/management/HotspotRuntimeMBean/GetSafepointCount.java
diffstat 6 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/management/HotspotClassLoadingMBean/GetClassLoadingTime.java	Mon Nov 18 15:25:15 2013 +0100
+++ b/test/sun/management/HotspotClassLoadingMBean/GetClassLoadingTime.java	Mon Nov 18 16:20:40 2013 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,7 @@
  * @summary Basic unit test of HotspotClassLoadingMBean.getClassLoadingTime()
  * @author  Steve Bohne
  * @build ClassToLoad0
- * @run main GetClassLoadingTime
+ * @run main/othervm -XX:+UsePerfData GetClassLoadingTime
  */
 
 /*
--- a/test/sun/management/HotspotClassLoadingMBean/GetInitializedClassCount.java	Mon Nov 18 15:25:15 2013 +0100
+++ b/test/sun/management/HotspotClassLoadingMBean/GetInitializedClassCount.java	Mon Nov 18 16:20:40 2013 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
  * @bug     4858522
  * @summary Basic unit test of HotspotClassLoadingMBean.getInitializedClassCount()
  * @author  Steve Bohne
+ * @run main/othervm -XX:+UsePerfData GetInitializedClassCount
  */
 
 /*
--- a/test/sun/management/HotspotClassLoadingMBean/GetLoadedClassSize.java	Mon Nov 18 15:25:15 2013 +0100
+++ b/test/sun/management/HotspotClassLoadingMBean/GetLoadedClassSize.java	Mon Nov 18 16:20:40 2013 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
  * @bug     4858522
  * @summary Basic unit test of HotspotClassLoadingMBean.getLoadedClassSize()
  * @author  Steve Bohne
+ * @run main/othervm -XX:+UsePerfData GetLoadedClassSize
  */
 
 /*
--- a/test/sun/management/HotspotClassLoadingMBean/GetMethodDataSize.java	Mon Nov 18 15:25:15 2013 +0100
+++ b/test/sun/management/HotspotClassLoadingMBean/GetMethodDataSize.java	Mon Nov 18 16:20:40 2013 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
  * @bug     4858522
  * @summary Basic unit test of HotspotClassLoadingMBean.getMethodDataSize()
  * @author  Steve Bohne
+ * @run main/othervm -XX:+UsePerfData GetMethodDataSize
  */
 
 /*
--- a/test/sun/management/HotspotClassLoadingMBean/GetUnloadedClassSize.java	Mon Nov 18 15:25:15 2013 +0100
+++ b/test/sun/management/HotspotClassLoadingMBean/GetUnloadedClassSize.java	Mon Nov 18 16:20:40 2013 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
  * @bug     4858522
  * @summary Basic unit test of HotspotClassLoadingMBean.getUnloadedClassSize()
  * @author  Steve Bohne
+ * @run main/othervm -XX:+UsePerfData GetUnloadedClassSize
  */
 
 /*
--- a/test/sun/management/HotspotRuntimeMBean/GetSafepointCount.java	Mon Nov 18 15:25:15 2013 +0100
+++ b/test/sun/management/HotspotRuntimeMBean/GetSafepointCount.java	Mon Nov 18 16:20:40 2013 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -26,6 +26,7 @@
  * @bug     4858522
  * @summary Basic unit test of HotspotClassLoadingMBean.getSafepointCount()
  * @author  Steve Bohne
+ * @run main/othervm -XX:+UsePerfData GetSafepointCount
  */
 
 /*