From 03668845a51766c8a813dd33c91bbaa008e05c48 Mon Sep 17 00:00:00 2001 From: rbackman Date: Tue, 24 Jan 2012 14:48:22 +0100 Subject: [PATCH] 7130476: Remove use of #ifdef TRACE_DEFINE_KLASS_TRACE_ID from klass.hpp Reviewed-by: kamg, phh, dsamersoff Contributed-by: Rickard Backman --- src/share/vm/oops/klass.cpp | 2 -- src/share/vm/oops/klass.hpp | 4 ---- src/share/vm/trace/traceMacros.hpp | 4 ++++ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/share/vm/oops/klass.cpp b/src/share/vm/oops/klass.cpp index e2997eaac..345d0b224 100644 --- a/src/share/vm/oops/klass.cpp +++ b/src/share/vm/oops/klass.cpp @@ -158,9 +158,7 @@ klassOop Klass::base_create_klass_oop(KlassHandle& klass, int size, kl->set_next_sibling(NULL); kl->set_alloc_count(0); kl->set_alloc_size(0); -#ifdef TRACE_SET_KLASS_TRACE_ID TRACE_SET_KLASS_TRACE_ID(kl, 0); -#endif kl->set_prototype_header(markOopDesc::prototype()); kl->set_biased_lock_revocation_count(0); diff --git a/src/share/vm/oops/klass.hpp b/src/share/vm/oops/klass.hpp index d4f5d504f..035f44c9d 100644 --- a/src/share/vm/oops/klass.hpp +++ b/src/share/vm/oops/klass.hpp @@ -265,9 +265,7 @@ class Klass : public Klass_vtbl { markOop _prototype_header; // Used when biased locking is both enabled and disabled for this type jint _biased_lock_revocation_count; -#ifdef TRACE_DEFINE_KLASS_TRACE_ID TRACE_DEFINE_KLASS_TRACE_ID; -#endif public: // returns the enclosing klassOop @@ -688,9 +686,7 @@ class Klass : public Klass_vtbl { jlong last_biased_lock_bulk_revocation_time() { return _last_biased_lock_bulk_revocation_time; } void set_last_biased_lock_bulk_revocation_time(jlong cur_time) { _last_biased_lock_bulk_revocation_time = cur_time; } -#ifdef TRACE_DEFINE_KLASS_METHODS TRACE_DEFINE_KLASS_METHODS; -#endif // garbage collection support virtual void follow_weak_klass_links( diff --git a/src/share/vm/trace/traceMacros.hpp b/src/share/vm/trace/traceMacros.hpp index e92593529..221f4d0f8 100644 --- a/src/share/vm/trace/traceMacros.hpp +++ b/src/share/vm/trace/traceMacros.hpp @@ -40,4 +40,8 @@ #define TRACE_START() true #define TRACE_INITIALIZE() 0 +#define TRACE_SET_KLASS_TRACE_ID(x1, x2) do { } while (0) +#define TRACE_DEFINE_KLASS_METHODS typedef int ___IGNORED_hs_trace_type1 +#define TRACE_DEFINE_KLASS_TRACE_ID typedef int ___IGNORED_hs_trace_type2 + #endif -- GitLab