Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8247578: [lworld] New inlined JVM internal field access constant in java.base #80

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -458,7 +458,7 @@ public boolean isNative() {
static final int SYNTHETIC = 0x00001000;
static final int ANNOTATION = 0x00002000;
static final int ENUM = 0x00004000;
static final int FLATTENED = 0x00008000;
static final int FLATTENED = 0x00004000;

/** Utility method to query the modifier flags of this member; returns false if the member is not a method. */
public boolean isBridge() {
@@ -332,7 +332,7 @@ public static String toString(int mod) {
static final int ANNOTATION = 0x00002000;
static final int ENUM = 0x00004000;
static final int MANDATED = 0x00008000;
static final int FLATTENED = 0x00008000; // HotSpot-specific bit
static final int FLATTENED = 0x00004000; // HotSpot-specific bit
static boolean isSynthetic(int mod) {
return (mod & SYNTHETIC) != 0;
}
@@ -177,13 +177,13 @@ public static Unsafe getUnsafe() {
@HotSpotIntrinsicCandidate
public native void putInt(Object o, long offset, int x);

private static final int JVM_ACC_FLATTENED = 0x00008000; // HotSpot-specific bit
private static final int JVM_ACC_FIELD_INLINED = 0x00004000; // HotSpot-specific bit

/**
* Returns true if the given field is flattened.
*/
public boolean isFlattened(Field f) {
return (f.getModifiers() & JVM_ACC_FLATTENED) == JVM_ACC_FLATTENED;
return (f.getModifiers() & JVM_ACC_FIELD_INLINED) == JVM_ACC_FIELD_INLINED;
}

/**