equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2013, 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. |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "classfile/systemDictionary.hpp" |
26 #include "classfile/systemDictionary.hpp" |
27 #include "interpreter/bytecode.hpp" |
27 #include "interpreter/bytecode.hpp" |
28 #include "interpreter/bytecodeStream.hpp" |
28 #include "interpreter/bytecodeStream.hpp" |
29 #include "interpreter/linkResolver.hpp" |
29 #include "interpreter/linkResolver.hpp" |
|
30 #include "memory/heapInspection.hpp" |
30 #include "oops/methodData.hpp" |
31 #include "oops/methodData.hpp" |
31 #include "prims/jvmtiRedefineClasses.hpp" |
32 #include "prims/jvmtiRedefineClasses.hpp" |
32 #include "runtime/compilationPolicy.hpp" |
33 #include "runtime/compilationPolicy.hpp" |
33 #include "runtime/deoptimization.hpp" |
34 #include "runtime/deoptimization.hpp" |
34 #include "runtime/handles.inline.hpp" |
35 #include "runtime/handles.inline.hpp" |
857 data->print_data_on(st); |
858 data->print_data_on(st); |
858 } |
859 } |
859 } |
860 } |
860 #endif |
861 #endif |
861 |
862 |
|
863 #if INCLUDE_SERVICES |
|
864 // Size Statistics |
|
865 void MethodData::collect_statistics(KlassSizeStats *sz) const { |
|
866 int n = sz->count(this); |
|
867 sz->_method_data_bytes += n; |
|
868 sz->_method_all_bytes += n; |
|
869 sz->_rw_bytes += n; |
|
870 } |
|
871 #endif // INCLUDE_SERVICES |
862 |
872 |
863 // Verification |
873 // Verification |
864 |
874 |
865 void MethodData::verify_on(outputStream* st) { |
875 void MethodData::verify_on(outputStream* st) { |
866 guarantee(is_methodData(), "object must be method data"); |
876 guarantee(is_methodData(), "object must be method data"); |