mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8276215: Intrinsics matchers should handle native method flags better
Reviewed-by: dholmes, kvn
This commit is contained in:
parent
0f463a7bf7
commit
a3f710efbe
2 changed files with 79 additions and 29 deletions
|
@ -33,13 +33,13 @@
|
|||
// These are flag-matching functions:
|
||||
inline bool match_F_R(jshort flags) {
|
||||
const int req = 0;
|
||||
const int neg = JVM_ACC_STATIC | JVM_ACC_SYNCHRONIZED;
|
||||
const int neg = JVM_ACC_STATIC | JVM_ACC_SYNCHRONIZED | JVM_ACC_NATIVE;
|
||||
return (flags & (req | neg)) == req;
|
||||
}
|
||||
|
||||
inline bool match_F_Y(jshort flags) {
|
||||
const int req = JVM_ACC_SYNCHRONIZED;
|
||||
const int neg = JVM_ACC_STATIC;
|
||||
const int neg = JVM_ACC_STATIC | JVM_ACC_NATIVE;
|
||||
return (flags & (req | neg)) == req;
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ inline bool match_F_RN(jshort flags) {
|
|||
|
||||
inline bool match_F_S(jshort flags) {
|
||||
const int req = JVM_ACC_STATIC;
|
||||
const int neg = JVM_ACC_SYNCHRONIZED;
|
||||
const int neg = JVM_ACC_SYNCHRONIZED | JVM_ACC_NATIVE;
|
||||
return (flags & (req | neg)) == req;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue