Skip to content

8307783: runtime/reflect/ReflectOutOfMemoryError.java timed out #14070

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

Closed
wants to merge 6 commits into from

Conversation

dcubed-ojdk
Copy link
Member

@dcubed-ojdk dcubed-ojdk commented May 20, 2023

A trivial fix to increase a timeout:
JDK-8307783 runtime/reflect/ReflectOutOfMemoryError.java timed out

Trivial fixes to ProblemList tests:
JDK-8308468 ProblemList containers/docker/TestMemoryAwareness.java on linux-x64
JDK-8308470 ProblemList javax/management/remote/mandatory/connection/BrokenConnectionTest.java on linux-all
JDK-8308471 ProblemList javax/management/remote/mandatory/loading/MissingClassTest.java on windows-x64 w/ loom
JDK-8308472 ProblemList javax/management/remote/mandatory/loading/RMIDownloadTest.java on windows-x64 w/ loom
JDK-8308473 ProblemList java/lang/instrument/NativeMethodPrefixAgent.java with loom


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issues

  • JDK-8307783: runtime/reflect/ReflectOutOfMemoryError.java timed out
  • JDK-8308468: ProblemList containers/docker/TestMemoryAwareness.java on linux-x64
  • JDK-8308470: ProblemList javax/management/remote/mandatory/connection/BrokenConnectionTest.java on linux-all
  • JDK-8308471: ProblemList javax/management/remote/mandatory/loading/MissingClassTest.java on windows-x64 w/ loom
  • JDK-8308472: ProblemList javax/management/remote/mandatory/loading/RMIDownloadTest.java on windows-x64 w/ loom
  • JDK-8308473: ProblemList java/lang/instrument/NativeMethodPrefixAgent.java with loom

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14070/head:pull/14070
$ git checkout pull/14070

Update a local copy of the PR:
$ git checkout pull/14070
$ git pull https://git.openjdk.org/jdk.git pull/14070/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 14070

View PR using the GUI difftool:
$ git pr show -t 14070

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14070.diff

@bridgekeeper
Copy link

bridgekeeper bot commented May 20, 2023

👋 Welcome back dcubed! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk The following label will be automatically applied to this pull request:

  • hotspot-runtime

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the hotspot-runtime hotspot-runtime-dev@openjdk.org label May 20, 2023
@dcubed-ojdk
Copy link
Member Author

/issue JDK-8307783
/issue JDK-8308468
/issue JDK-8308470
/issue JDK-8308471
/issue JDK-8308472
/issue JDK-8308473

@openjdk openjdk bot changed the title Jdk 8307783 8307783: runtime/reflect/ReflectOutOfMemoryError.java timed out May 20, 2023
@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk The primary solved issue for a PR is set through the PR title. Since the current title does not contain an issue reference, it will now be updated.

@dcubed-ojdk
Copy link
Member Author

/label add serviceability

@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk
Adding additional issue to issue list: 8308468: ProblemList containers/docker/TestMemoryAwareness.java on linux-x64.

@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk
Adding additional issue to issue list: 8308470: ProblemList javax/management/remote/mandatory/connection/BrokenConnectionTest.java on linux-all.

@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk
Adding additional issue to issue list: 8308471: ProblemList javax/management/remote/mandatory/loading/MissingClassTest.java on windows-x64 w/ loom.

@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk
Adding additional issue to issue list: 8308472: ProblemList javax/management/remote/mandatory/loading/RMIDownloadTest.java on windows-x64 w/ loom.

@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk
Adding additional issue to issue list: 8308473: ProblemList java/lang/instrument/NativeMethodPrefixAgent.java with loom.

@openjdk openjdk bot added the serviceability serviceability-dev@openjdk.org label May 20, 2023
@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk
The serviceability label was successfully added.

Copy link
Member

@lmesnik lmesnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small proposal inline.

@@ -25,7 +25,7 @@
* @test
* @bug 8297977
* @summary Test that throwing OOM from reflected method gets InvocationTargetException
* @run main/othervm ReflectOutOfMemoryError
* @run main/othervm/timeout=150 ReflectOutOfMemoryError
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't it make a sense to exclude this test from tier1, if it might took more than 2 minutes to complete?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not that simple. Here's my comment from the bug:

https://bugs.openjdk.org/browse/JDK-8307783?focusedCommentId=14582995&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14582995

In jdk-21+24-2010 (which has finished Tier[1-7]), there are 79 passing runs of
this test and the times range from 31s -> 7m 37s. The slowest is on linux-arch64,
but the fastest linux-aarch64 is 44s so it's not simply that linux-aarch64 is slow.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know why this test do not set Xmx to some reasonable value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcubed-ojdk
Copy link
Member Author

@lmesnik - Thanks for fast review! Especially for a Saturday AM...

/integrate

@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk This pull request has not yet been marked as ready for integration.

@dcubed-ojdk dcubed-ojdk marked this pull request as ready for review May 20, 2023 16:37
@dcubed-ojdk
Copy link
Member Author

Oops... forgot to mark it ready for review.

@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk 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:

8307783: runtime/reflect/ReflectOutOfMemoryError.java timed out
8308468: ProblemList containers/docker/TestMemoryAwareness.java on linux-x64
8308470: ProblemList javax/management/remote/mandatory/connection/BrokenConnectionTest.java on linux-all
8308471: ProblemList javax/management/remote/mandatory/loading/MissingClassTest.java on windows-x64 w/ loom
8308472: ProblemList javax/management/remote/mandatory/loading/RMIDownloadTest.java on windows-x64 w/ loom
8308473: ProblemList java/lang/instrument/NativeMethodPrefixAgent.java with loom

Reviewed-by: lmesnik

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 no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@dcubed-ojdk
Copy link
Member Author

/integrate

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 20, 2023
@openjdk
Copy link

openjdk bot commented May 20, 2023

Going to push as commit a0f4a94.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 20, 2023
@openjdk openjdk bot closed this May 20, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 20, 2023
@openjdk
Copy link

openjdk bot commented May 20, 2023

@dcubed-ojdk Pushed as commit a0f4a94.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@mlbridge
Copy link

mlbridge bot commented May 20, 2023

Webrevs

@dcubed-ojdk dcubed-ojdk deleted the JDK-8307783 branch May 22, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated serviceability serviceability-dev@openjdk.org
Development

Successfully merging this pull request may close these issues.

3 participants