Skip to content

8373945: Use WB.fullGC() in ClassUnloader.unloadClass to force GC for vmTestbase tests#199

Open
sendaoYan wants to merge 2 commits intoopenjdk:masterfrom
sendaoYan:jbs8373945
Open

8373945: Use WB.fullGC() in ClassUnloader.unloadClass to force GC for vmTestbase tests#199
sendaoYan wants to merge 2 commits intoopenjdk:masterfrom
sendaoYan:jbs8373945

Conversation

@sendaoYan
Copy link
Member

@sendaoYan sendaoYan commented Jan 29, 2026

Hi all,

This backport PR contains JDK-8373945 and JDK-8375485. These two PR try to use WB.fullGC() in ClassUnloader.unloadClass to force GC for vmTestbase tests, which will make test more robustness and run more quickly. Some of the tests touched by '8260555: Change the default TIMEOUT_FACTOR from 4 to 1' make this backport uncleanly, and only below 5 files backported uncleanly because of the diffrent copyright year. All other parts are cleanly.

Change has been verifed locally on linux-x64 by run all the releated tests. Test-fix only, no risk.

test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large001/large001.java
test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large002/TestDescription.java
test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large003/TestDescription.java
test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large004/TestDescription.java
test/hotspot/jtreg/vmTestbase/gc/gctests/LargeObjects/large005/TestDescription.java

Related tests list:

199.log


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
  • JDK-8373945 needs maintainer approval
  • JDK-8375485 needs maintainer approval

Issues

  • JDK-8373945: Use WB.fullGC() in ClassUnloader.unloadClass to force GC for vmTestbase tests (Enhancement - P4)
  • JDK-8375485: Tests in vmTestbase/nsk are failing due to missing class unloading after 8373945 (Bug - P3)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk25u-dev.git pull/199/head:pull/199
$ git checkout pull/199

Update a local copy of the PR:
$ git checkout pull/199
$ git pull https://git.openjdk.org/jdk25u-dev.git pull/199/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 199

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk25u-dev/pull/199.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 29, 2026

👋 Welcome back syan! 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 Jan 29, 2026

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport ce5e0d8a48296b51c9c2eff4867e2a9a70194091 8373945: Use WB.fullGC() in ClassUnloader.unloadClass to force GC for vmTestbase tests Jan 29, 2026
@openjdk
Copy link

openjdk bot commented Jan 29, 2026

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added the backport Port of a pull request already in a different code base label Jan 29, 2026
@sendaoYan sendaoYan marked this pull request as ready for review January 29, 2026 07:41
@openjdk openjdk bot added the rfr Pull request is ready for review label Jan 29, 2026
@mlbridge
Copy link

mlbridge bot commented Jan 29, 2026

Webrevs

@sendaoYan
Copy link
Member Author

/issue JDK-8375485

@openjdk
Copy link

openjdk bot commented Jan 29, 2026

@sendaoYan
Adding additional issue to issue list: 8375485: Tests in vmTestbase/nsk are failing due to missing class unloading after 8373945.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Port of a pull request already in a different code base rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant