8300944: Test vmTestbase/gc/gctests/WeakReference/weak005/weak005.java fails with "Last weak reference has not been cleared" - #32422
Conversation
…a fails with "Last weak reference has not been cleared"
|
👋 Welcome back shivshah-oracle! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@shivshah-oracle The following label will be automatically applied to this pull request:
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. |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
The test builds a chain of weak references, clears the array entries from the beginning, and expects the final reference to be cleared by a full GC. If GC runs just before the penultimate entry is cleared, that reference is still strongly reachable from the array while its referent is not. GC may clear it and place it on the pending reference list, which keeps the reference object alive until the reference handler processes it. Clearing its array entry afterward does not remove that reachability, so the final reference may legally remain uncleared.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32422/head:pull/32422$ git checkout pull/32422Update a local copy of the PR:
$ git checkout pull/32422$ git pull https://git.openjdk.org/jdk.git pull/32422/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 32422View PR using the GUI difftool:
$ git pr show -t 32422Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32422.diff