# HG changeset patch # User jbachorik # Date 1384788040 -3600 # Node ID 791d8485f6ed78172b1772b1d89e1cbbc6478d97 # Parent b36494ddf19e2d1145e9807ac2401b9e81d3c971 8028433: [TESTBUG] add -XX:+UsePerfData to some sun.management tests Reviewed-by: sla, egahlin diff -r b36494ddf19e -r 791d8485f6ed jdk/test/sun/management/HotspotClassLoadingMBean/GetClassLoadingTime.java --- a/jdk/test/sun/management/HotspotClassLoadingMBean/GetClassLoadingTime.java Mon Nov 18 15:25:15 2013 +0100 +++ b/jdk/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 */ /* diff -r b36494ddf19e -r 791d8485f6ed jdk/test/sun/management/HotspotClassLoadingMBean/GetInitializedClassCount.java --- a/jdk/test/sun/management/HotspotClassLoadingMBean/GetInitializedClassCount.java Mon Nov 18 15:25:15 2013 +0100 +++ b/jdk/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 */ /* diff -r b36494ddf19e -r 791d8485f6ed jdk/test/sun/management/HotspotClassLoadingMBean/GetLoadedClassSize.java --- a/jdk/test/sun/management/HotspotClassLoadingMBean/GetLoadedClassSize.java Mon Nov 18 15:25:15 2013 +0100 +++ b/jdk/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 */ /* diff -r b36494ddf19e -r 791d8485f6ed jdk/test/sun/management/HotspotClassLoadingMBean/GetMethodDataSize.java --- a/jdk/test/sun/management/HotspotClassLoadingMBean/GetMethodDataSize.java Mon Nov 18 15:25:15 2013 +0100 +++ b/jdk/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 */ /* diff -r b36494ddf19e -r 791d8485f6ed jdk/test/sun/management/HotspotClassLoadingMBean/GetUnloadedClassSize.java --- a/jdk/test/sun/management/HotspotClassLoadingMBean/GetUnloadedClassSize.java Mon Nov 18 15:25:15 2013 +0100 +++ b/jdk/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 */ /* diff -r b36494ddf19e -r 791d8485f6ed jdk/test/sun/management/HotspotRuntimeMBean/GetSafepointCount.java --- a/jdk/test/sun/management/HotspotRuntimeMBean/GetSafepointCount.java Mon Nov 18 15:25:15 2013 +0100 +++ b/jdk/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 */ /*