Mercurial > hg > graal-compiler
comparison src/share/vm/oops/methodData.cpp @ 8124:5fc51c1ecdeb
Merge.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 05 Mar 2013 23:44:54 +0100 |
parents | 5d0bb7d52783 16fb9f942703 |
children | 0026a2e70695 |
comparison
equal
deleted
inserted
replaced
7943:a413bcd552a4 | 8124:5fc51c1ecdeb |
---|---|
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" |
888 data->print_data_on(st); | 889 data->print_data_on(st); |
889 } | 890 } |
890 } | 891 } |
891 #endif | 892 #endif |
892 | 893 |
894 #if INCLUDE_SERVICES | |
895 // Size Statistics | |
896 void MethodData::collect_statistics(KlassSizeStats *sz) const { | |
897 int n = sz->count(this); | |
898 sz->_method_data_bytes += n; | |
899 sz->_method_all_bytes += n; | |
900 sz->_rw_bytes += n; | |
901 } | |
902 #endif // INCLUDE_SERVICES | |
893 | 903 |
894 // Verification | 904 // Verification |
895 | 905 |
896 void MethodData::verify_on(outputStream* st) { | 906 void MethodData::verify_on(outputStream* st) { |
897 guarantee(is_methodData(), "object must be method data"); | 907 guarantee(is_methodData(), "object must be method data"); |