-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed RetentionPolicy for mask annotation
- Loading branch information
1 parent
5469584
commit 82e03dc
Showing
9 changed files
with
222 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Phosphor/src/main/java/edu/columbia/cs/psl/phosphor/runtime/mask/OffsetPair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package edu.columbia.cs.psl.phosphor.runtime.mask; | ||
|
||
@SuppressWarnings("unused") | ||
|
||
public class OffsetPair { | ||
|
||
public final long origFieldOffset; | ||
public final long wrappedFieldOffset; | ||
public final long tagFieldOffset; | ||
public final boolean isStatic; | ||
|
||
public OffsetPair(boolean isStatic, long origFieldOffset, long wrappedFieldOffset, long tagFieldOffset) { | ||
this.isStatic = isStatic; | ||
this.origFieldOffset = origFieldOffset; | ||
this.tagFieldOffset = tagFieldOffset; | ||
this.wrappedFieldOffset = wrappedFieldOffset; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object other) { | ||
return other instanceof OffsetPair && this.origFieldOffset == ((OffsetPair) other).origFieldOffset && this.isStatic == ((OffsetPair) other).isStatic; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return (int) (origFieldOffset ^ (origFieldOffset >>> 32)); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.format("{field @ %d -> tag @ %d, wrapper @ %d}", origFieldOffset, tagFieldOffset, wrappedFieldOffset); | ||
} | ||
} |
307 changes: 134 additions & 173 deletions
307
...e/RuntimeJDKInternalUnsafePropagator.java → ...k/RuntimeJDKInternalUnsafePropagator.java
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.