-
Notifications
You must be signed in to change notification settings - Fork 738
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
Add test for VarHandle MethodHandleInfo #4541
Conversation
bd23dea
to
71f3fce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@llxia Can you or a delegate review this as well?
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
71f3fce
to
adb1922
Compare
@DanHeidinga and @llxia In re efficiency, this test runs in less than 2 seconds, so I favoured clarity over speed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
Done.
Fixed. |
e7abd57
to
812050d
Compare
protected static Logger logger = Logger.getLogger(TestVarHandleInfo.class); | ||
private static final String TEST_VAR_HANDLE_INFO = "Lorg/openj9/test/varhandle/TestVarHandleInfo;"; //$NON-NLS-1$ | ||
private static final String INTEGER = "Ljava/lang/Integer;"; //$NON-NLS-1$ | ||
private static final int MODIFIER_SYNTHETIC = 0x01000; /* get this from dumping java/lang/reflect/Modifier */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* get this from dumping java/lang/reflect/Modifier */
It's also in the VM spec :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @DanHeidinga
I need a newer copy of the spec -:).
Code updated with chapter and verse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see the /* get this from dumping java/lang/reflect/Modifier */
comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with reference to VM spec.
812050d
to
87a66c8
Compare
Updated per reviewers' comments. |
@llxia or @DanHeidinga do you have any further comments? |
protected static Logger logger = Logger.getLogger(TestVarHandleInfo.class); | ||
private static final String TEST_VAR_HANDLE_INFO = "Lorg/openj9/test/varhandle/TestVarHandleInfo;"; //$NON-NLS-1$ | ||
private static final String INTEGER = "Ljava/lang/Integer;"; //$NON-NLS-1$ | ||
private static final int MODIFIER_SYNTHETIC = 0x01000; /* get this from dumping java/lang/reflect/Modifier */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see the /* get this from dumping java/lang/reflect/Modifier */
comment
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
test/functional/Java11andUp/src/org/openj9/test/varhandle/TestVarHandleInfo.java
Outdated
Show resolved
Hide resolved
Test for eclipse-openj9#3180 This depends on eclipse-openj9#4458 [ci skip] Signed-off-by: Peter Bain <peter_bain@ca.ibm.com>
87a66c8
to
c6a30b1
Compare
Updated per reviewer's comments. I also trimmed out some redundant code and cleaned up formatting. Tested on MacOS and pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Jenkins test sanity zlinux jdk11 |
Jenkins test sanity osx jdk12 |
@DanHeidinga could you restart the sanity build? It appears there was a machine problem. |
Jenkins test sanity osx jdk12 |
Depends on
#4458
Signed-off-by: Peter Bain peter_bain@ca.ibm.com