src/share/vm/oops/method.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8076112 Cdiff src/share/vm/oops/method.hpp

src/share/vm/oops/method.hpp

Print this page
rev 8621 : 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Summary: Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.
Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon

*** 80,90 **** _caller_sensitive = 1 << 1, _force_inline = 1 << 2, _dont_inline = 1 << 3, _hidden = 1 << 4, _has_injected_profile = 1 << 5, ! _running_emcp = 1 << 6 }; u1 _flags; #ifndef PRODUCT int _compiled_invocation_count; // Number of nmethod invocations so far (for perf. debugging) --- 80,91 ---- _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 }; u1 _flags; #ifndef PRODUCT int _compiled_invocation_count; // Number of nmethod invocations so far (for perf. debugging)
*** 813,822 **** --- 814,830 ---- } void set_hidden(bool x) { _flags = x ? (_flags | _hidden) : (_flags & ~_hidden); } + bool intrinsic_candidate() { + return (_flags & _intrinsic_candidate) != 0; + } + void set_intrinsic_candidate(bool x) { + _flags = x ? (_flags | _intrinsic_candidate) : (_flags & ~_intrinsic_candidate); + } + bool has_injected_profile() { return (_flags & _has_injected_profile) != 0; } void set_has_injected_profile(bool x) { _flags = x ? (_flags | _has_injected_profile) : (_flags & ~_has_injected_profile);
src/share/vm/oops/method.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File