Mercurial > hg > truffle
comparison src/share/vm/oops/instanceKlass.hpp @ 7464:ecd24264898b
8005048: NMT: #loaded classes needs to just show the # defined classes
Summary: Count number of instance classes so that it matches class metadata size
Reviewed-by: coleenp, acorn
author | zgu |
---|---|
date | Tue, 08 Jan 2013 14:04:25 -0500 |
parents | bd7a7ce2e264 |
children | 37a3e8b7a1e9 |
comparison
equal
deleted
inserted
replaced
7396:4a2ed49abd51 | 7464:ecd24264898b |
---|---|
29 #include "oops/annotations.hpp" | 29 #include "oops/annotations.hpp" |
30 #include "oops/constMethod.hpp" | 30 #include "oops/constMethod.hpp" |
31 #include "oops/fieldInfo.hpp" | 31 #include "oops/fieldInfo.hpp" |
32 #include "oops/instanceOop.hpp" | 32 #include "oops/instanceOop.hpp" |
33 #include "oops/klassVtable.hpp" | 33 #include "oops/klassVtable.hpp" |
34 #include "runtime/atomic.hpp" | |
34 #include "runtime/handles.hpp" | 35 #include "runtime/handles.hpp" |
35 #include "runtime/os.hpp" | 36 #include "runtime/os.hpp" |
36 #include "utilities/accessFlags.hpp" | 37 #include "utilities/accessFlags.hpp" |
37 #include "utilities/bitMap.inline.hpp" | 38 #include "utilities/bitMap.inline.hpp" |
38 | 39 |
168 being_initialized, // currently running class initializer | 169 being_initialized, // currently running class initializer |
169 fully_initialized, // initialized (successfull final state) | 170 fully_initialized, // initialized (successfull final state) |
170 initialization_error // error happened during initialization | 171 initialization_error // error happened during initialization |
171 }; | 172 }; |
172 | 173 |
174 static int number_of_instance_classes() { return _total_instanceKlass_count; } | |
175 | |
176 private: | |
177 static volatile int _total_instanceKlass_count; | |
178 | |
173 protected: | 179 protected: |
174 // Protection domain. | 180 // Protection domain. |
175 oop _protection_domain; | 181 oop _protection_domain; |
176 // Class signers. | 182 // Class signers. |
177 objArrayOop _signers; | 183 objArrayOop _signers; |