1.1 --- a/src/share/vm/oops/klass.hpp Mon Jan 09 10:27:24 2012 +0100 1.2 +++ b/src/share/vm/oops/klass.hpp Wed Jan 11 17:34:02 2012 -0500 1.3 @@ -33,6 +33,7 @@ 1.4 #include "oops/klassPS.hpp" 1.5 #include "oops/oop.hpp" 1.6 #include "runtime/orderAccess.hpp" 1.7 +#include "trace/traceMacros.hpp" 1.8 #include "utilities/accessFlags.hpp" 1.9 #ifndef SERIALGC 1.10 #include "gc_implementation/concurrentMarkSweep/cmsOopClosures.hpp" 1.11 @@ -80,6 +81,7 @@ 1.12 // [last_biased_lock_bulk_revocation_time] (64 bits) 1.13 // [prototype_header] 1.14 // [biased_lock_revocation_count] 1.15 +// [trace_id] 1.16 1.17 1.18 // Forward declarations. 1.19 @@ -263,6 +265,9 @@ 1.20 markOop _prototype_header; // Used when biased locking is both enabled and disabled for this type 1.21 jint _biased_lock_revocation_count; 1.22 1.23 +#ifdef TRACE_DEFINE_KLASS_TRACE_ID 1.24 + TRACE_DEFINE_KLASS_TRACE_ID; 1.25 +#endif 1.26 public: 1.27 1.28 // returns the enclosing klassOop 1.29 @@ -683,6 +688,9 @@ 1.30 jlong last_biased_lock_bulk_revocation_time() { return _last_biased_lock_bulk_revocation_time; } 1.31 void set_last_biased_lock_bulk_revocation_time(jlong cur_time) { _last_biased_lock_bulk_revocation_time = cur_time; } 1.32 1.33 +#ifdef TRACE_DEFINE_KLASS_METHODS 1.34 + TRACE_DEFINE_KLASS_METHODS; 1.35 +#endif 1.36 1.37 // garbage collection support 1.38 virtual void follow_weak_klass_links(