mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
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
This commit is contained in:
parent
34616cd876
commit
9245cdc214
13 changed files with 191 additions and 44 deletions
|
@ -82,7 +82,8 @@ class Method : public Metadata {
|
|||
_dont_inline = 1 << 3,
|
||||
_hidden = 1 << 4,
|
||||
_has_injected_profile = 1 << 5,
|
||||
_running_emcp = 1 << 6
|
||||
_running_emcp = 1 << 6,
|
||||
_intrinsic_candidate = 1 << 7
|
||||
};
|
||||
u1 _flags;
|
||||
|
||||
|
@ -815,6 +816,13 @@ class Method : public Metadata {
|
|||
_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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue