--- old/src/share/vm/oops/method.hpp 2019-02-15 19:02:35.974884126 +0300 +++ new/src/share/vm/oops/method.hpp 2019-02-15 19:02:35.878887482 +0300 @@ -37,6 +37,10 @@ #include "oops/typeArrayOop.hpp" #include "utilities/accessFlags.hpp" #include "utilities/growableArray.hpp" +#include "utilities/macros.hpp" +#if INCLUDE_JFR +#include "jfr/support/jfrTraceIdExtension.hpp" +#endif // A Method* represents a Java method. // @@ -116,6 +120,8 @@ _has_injected_profile : 1, : 2; + JFR_ONLY(DEFINE_TRACE_FLAG;) + #ifndef PRODUCT int _compiled_invocation_count; // Number of nmethod invocations so far (for perf. debugging) #endif @@ -805,6 +811,8 @@ bool has_injected_profile() { return _has_injected_profile; } void set_has_injected_profile(bool x) { _has_injected_profile = x; } + JFR_ONLY(DEFINE_TRACE_FLAG_ACCESSOR;) + ConstMethod::MethodType method_type() const { return _constMethod->method_type(); }