equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
86 testClassLoader = null; |
86 testClassLoader = null; |
87 testClass = null; |
87 testClass = null; |
88 allocatorThread = null; |
88 allocatorThread = null; |
89 |
89 |
90 // System.gc() will trigger class unloading if -XX:+ExplicitGCInvokesConcurrent |
90 // System.gc() will trigger class unloading if -XX:+ExplicitGCInvokesConcurrent |
91 // is NOT set. If this flag is set G1 will never unload classes on System.gc() |
91 // is NOT set. If this flag is set G1 will never unload classes on System.gc(). |
92 // and CMS will not guarantee that all semantically dead classes will be |
92 // As far as the "jfr" key guarantees no VM flags are set from the |
93 // unloaded. As far as the "jfr" key guarantees no VM flags are set from the |
|
94 // outside it should be enough with System.gc(). |
93 // outside it should be enough with System.gc(). |
95 System.gc(); |
94 System.gc(); |
96 |
95 |
97 // Provoke a chunk rotation, which will flush out ordinary metadata. |
96 // Provoke a chunk rotation, which will flush out ordinary metadata. |
98 provokeChunkRotation(); |
97 provokeChunkRotation(); |