Skip to content

Conversation

Arraying
Copy link
Member

@Arraying Arraying commented Sep 8, 2025

Hi all,

This change strengthens our Valhalla-specific classloading test suite and guards against regressions. An overview of the new changes is as follows:

  • BigClassTreeClassLoader: a utility classloader that generates huge class trees on the fly. The idea is to generate a tree that is deep (lots of parent classes) and very wide (classes have lots of value classes as fields, which have value class fields, etc.).
  • ConcurrentClassLoadingTest strains the classloading and preloading by classloading many classes at the same time.
  • LoadableDescriptorsTest ensures that the LoadableDescriptors attribute can handle unexpected data. This may need to be revisited if https://bugs.openjdk.org/browse/JDK-8366907 changes the semantics.
  • PreLoadCircularityTest ensures that preloading happens even when there are cycles (via inheritance, fields, and both).
  • PreLoadDoesNotInitTest is a regression test that ensures preloading will not initialize a class.
  • PreLoadFailuresDoNotImpactApplicationTest ensures that a flaky classloader during preloading will not cause crashes as long as the classloader can find the class when it is actually used.
  • ValueClassInheritanceTest is a regression test that ensures one cannot have a value class inherit from something that's not an abstract value class.

Progress

  • Change must not contain extraneous whitespace

Issue

  • JDK-8327257: [lworld] Tests are needed to stress class preloading with concurrent class loadings (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1552

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/1552.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 8, 2025

👋 Welcome back phubner! A progress list of the required criteria for merging this PR into lworld 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 Sep 8, 2025

@Arraying 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:

8327257: [lworld] Tests are needed to stress class preloading with concurrent class loadings

Reviewed-by: dsimms

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 2 new commits pushed to the lworld branch:

  • 3e84ee6: [lworld] One more workaround for JDK-8366668
  • 320b11c: [lworld] Problem listing tests failing due to JDK-8366806

Please see this link for an up-to-date comparison between the source branch of this pull request and the lworld branch.
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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@MrSimms) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot changed the title 8327257 8327257: [lworld] Tests are needed to stress class preloading with concurrent class loadings Sep 8, 2025
@Arraying Arraying marked this pull request as ready for review September 9, 2025 10:56
@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 9, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 9, 2025

Webrevs

@Arraying Arraying marked this pull request as draft September 9, 2025 11:07
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 9, 2025
@Arraying Arraying marked this pull request as ready for review September 9, 2025 11:23
@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 9, 2025
@MrSimms
Copy link
Member

MrSimms commented Sep 10, 2025

Sorry I pushed the jdk-26+1 merge, meaning you'll need to flick major version (69 to 70).

Copy link
Member

@MrSimms MrSimms left a comment

Choose a reason for hiding this comment

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

Looks good

@Arraying
Copy link
Member Author

Thanks for the review.

@Arraying
Copy link
Member Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Sep 10, 2025
@openjdk
Copy link

openjdk bot commented Sep 10, 2025

@Arraying
Your change (at version d02d931) is now ready to be sponsored by a Committer.

@MrSimms
Copy link
Member

MrSimms commented Sep 10, 2025

/sponsor

@openjdk
Copy link

openjdk bot commented Sep 10, 2025

Going to push as commit 092078e.
Since your change was applied there have been 2 commits pushed to the lworld branch:

  • 3e84ee6: [lworld] One more workaround for JDK-8366668
  • 320b11c: [lworld] Problem listing tests failing due to JDK-8366806

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Sep 10, 2025
@openjdk openjdk bot closed this Sep 10, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Sep 10, 2025
@openjdk
Copy link

openjdk bot commented Sep 10, 2025

@MrSimms @Arraying Pushed as commit 092078e.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants