equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 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. |
28 * @author Eamonn McManus |
28 * @author Eamonn McManus |
29 * @modules jdk.management |
29 * @modules jdk.management |
30 * @run main/othervm -XX:-ExplicitGCInvokesConcurrent GcInfoCompositeType |
30 * @run main/othervm -XX:-ExplicitGCInvokesConcurrent GcInfoCompositeType |
31 */ |
31 */ |
32 // Passing "-XX:-ExplicitGCInvokesConcurrent" to force System.gc() |
32 // Passing "-XX:-ExplicitGCInvokesConcurrent" to force System.gc() |
33 // run on foreground when CMS is used and prevent situations when "GcInfo" |
33 // run on foreground when a concurrent collector is used and prevent situations when "GcInfo" |
34 // is missing even though System.gc() was successfuly processed. |
34 // is missing even though System.gc() was successfuly processed. |
35 |
35 |
36 import java.util.*; |
36 import java.util.*; |
37 import java.lang.management.*; |
37 import java.lang.management.*; |
38 import java.lang.reflect.*; |
38 import java.lang.reflect.*; |