--- old/src/share/vm/oops/method.hpp 2015-11-23 18:21:00.048836664 +0100 +++ new/src/share/vm/oops/method.hpp 2015-11-23 18:20:59.871818865 +0100 @@ -75,16 +75,17 @@ // Flags enum Flags { - _jfr_towrite = 1 << 0, - _caller_sensitive = 1 << 1, - _force_inline = 1 << 2, - _dont_inline = 1 << 3, - _hidden = 1 << 4, - _has_injected_profile = 1 << 5, - _running_emcp = 1 << 6, - _intrinsic_candidate = 1 << 7 + _jfr_towrite = 1 << 0, + _caller_sensitive = 1 << 1, + _force_inline = 1 << 2, + _dont_inline = 1 << 3, + _hidden = 1 << 4, + _has_injected_profile = 1 << 5, + _running_emcp = 1 << 6, + _intrinsic_candidate = 1 << 7, + _reserved_stack_access = 1 << 8 }; - u1 _flags; + u2 _flags; #ifndef PRODUCT int _compiled_invocation_count; // Number of nmethod invocations so far (for perf. debugging) @@ -829,6 +830,14 @@ _flags = x ? (_flags | _has_injected_profile) : (_flags & ~_has_injected_profile); } + bool has_reserved_stack_access() { + return (_flags & _reserved_stack_access) != 0; + } + + void set_has_reserved_stack_access(bool x) { + _flags = x ? (_flags | _reserved_stack_access) : (_flags & ~_reserved_stack_access); + } + ConstMethod::MethodType method_type() const { return _constMethod->method_type(); }