6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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 #include "precompiled.hpp"
26 #include "classfile/classLoaderStats.hpp"
27 #include "oops/oop.inline.hpp"
28 #include "utilities/globalDefinitions.hpp"
29
30
31 class ClassStatsClosure : public KlassClosure {
32 public:
33 int _num_classes;
34
35 ClassStatsClosure() :
36 _num_classes(0) {
37 }
38
39 virtual void do_klass(Klass* k) {
40 _num_classes++;
41 }
42 };
43
44
45 void ClassLoaderStatsClosure::do_cld(ClassLoaderData* cld) {
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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 #include "precompiled.hpp"
26 #include "classfile/classLoaderData.inline.hpp"
27 #include "classfile/classLoaderStats.hpp"
28 #include "oops/oop.inline.hpp"
29 #include "utilities/globalDefinitions.hpp"
30
31
32 class ClassStatsClosure : public KlassClosure {
33 public:
34 int _num_classes;
35
36 ClassStatsClosure() :
37 _num_classes(0) {
38 }
39
40 virtual void do_klass(Klass* k) {
41 _num_classes++;
42 }
43 };
44
45
46 void ClassLoaderStatsClosure::do_cld(ClassLoaderData* cld) {
|