-
Notifications
You must be signed in to change notification settings - Fork 217
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
8319567: Update java/lang/invoke tests to support vm flags #3153
Conversation
👋 Welcome back goetz! A progress list of the required criteria for merging this PR into |
@GoeLin This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 11 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
This backport pull request has now been updated with issues from the original commit. |
GHA failure: wget failted twice, Unrelated |
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. Seems like many manual changes were needed because openjdk/jdk@dd59471 is not in 17u.
|
Thanks for the review!! |
/integrate |
@GoeLin This pull request has not yet been marked as ready for integration. |
/integrate |
Going to push as commit 743724e.
Your commit was automatically rebased without conflicts. |
This change did not apply well. I needed the following adaptions:
test/jdk/java/lang/ClassLoader/loadLibraryUnload/LoadLibraryUnloadTest.java
is missing in 17. It was added by "8266310: deadlock between System.loadLibrary and JNI FindClass loading another class"
in 18. Skipped.
Resolved test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java
bacause "8284209: Replace remaining usages of 'a the' in source code" not in 17.
test/jdk/java/lang/invoke/lambda/LambdaAsm.java
resolved because
8292914: Lambda proxies have unstable names
and 8304846: Provide a shared utility to dump generated classes defined via Lookup API
not in 17
I needed to keep one of the removed imports.
test/jdk/java/lang/invoke/lambda/LogGeneratedClassesTest.java
This needed an extensive resolve.
8304846: Provide a shared utility to dump generated classes defined via Lookup API
and
8307944: ClassFileDumper should only load java.nio.file.Path if enabled
not in 17.
I had to rework this test significantly.
The test assures that a property works that makes the VM dump
lambda classes it has generated. This mechanism has changed between 17 and 21.
E.g., the property name is different. Also, 17 needs to be passed
a directory name, 21 has a default name for this directory.
Some error cases are handled differently, sometimes a bug
is reported where the other implementation continues silently.
I try to take over the test structure of the test in 21,
but I adapt it to test for the same VM behaviour the old
test in 17 did.
The new test compiles the test class to subdirectory "classes/"
where the old test compiled them to ".".
Also, the new test places all dumped lambda classes in
DUMP_LAMBDA_PROXY_CLASS_FILES that is generated in the
working directory, where the old test wrote them directly
into the working directory.
test/jdk/java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java
resolved as
8221642: AccessibleObject::setAccessible throws NPE when invoked by JNI code with no java frame on stack
and
8300139 [AIX] Use pthreads to avoid JNI_createVM call from primordial thread
not in 17
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3153/head:pull/3153
$ git checkout pull/3153
Update a local copy of the PR:
$ git checkout pull/3153
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3153/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3153
View PR using the GUI difftool:
$ git pr show -t 3153
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3153.diff
Using Webrev
Link to Webrev Comment