Skip to content

Commit

Permalink
8309890: TestStringDeduplicationInterned.java waits for the wrong con…
Browse files Browse the repository at this point in the history
…dition

Backport-of: 63fe413d93861c79af5587859f01822980969c24
  • Loading branch information
acmoraru authored and shipilev committed May 13, 2024
1 parent 8f68f8f commit 20c2511
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,8 @@ public static void main(String[] args) {

forceDeduplication(ageThreshold, FullGC);

if (!waitForDeduplication(dupString3, baseString)) {
if (getValue(dupString3) != getValue(internedString)) {
throw new RuntimeException("String 3 doesn't match either");
}
if (!waitForDeduplication(dupString3, internedString)) {
throw new RuntimeException("Deduplication has not occurred for string 3");
}

if (afterInternedValue != getValue(dupString2)) {
Expand Down

1 comment on commit 20c2511

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.