8373718: jdk/internal/misc/VM/RuntimeArguments.java test fails in Virtual threads mode #28935
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
RuntimeArguments.javaruns with@requires vm.flagless, though setting thetest.thread.factory=Virtualsystem property with-Dwill still run the test.The test spawns java processes, checking for particular, exact sets of runtime options (hence,
vm.flagless). It is not expecting to find-Dtest.thread.factory=Virtual.It doesn't seem important that this test be run with the virtual thread factory. The suggestion of adding this test to
ProblemList-Virtual.txtseems reasonable. (It would be a long term resident of the problem list, which is perhaps a bit strange.)Alternative courses of action:
-Doptions.-Doptions; offhand that doesn't seem worth it.Update:
The bots don't like having the "current" bugid present in the problem list. I have updated the bugid in the PL to 8309303 (when the
VM_OPTIONSconstant was added to the test) - a bit disingenuous. If we're not happy with this, I guess a new issue could be filed ("RuntimeArguments.java doesn't account for -D system properties") to use in the problem list.Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28935/head:pull/28935$ git checkout pull/28935Update a local copy of the PR:
$ git checkout pull/28935$ git pull https://git.openjdk.org/jdk.git pull/28935/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28935View PR using the GUI difftool:
$ git pr show -t 28935Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28935.diff
Using Webrev
Link to Webrev Comment