Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309890

TestStringDeduplicationInterned.java waits for the wrong condition

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 17, 21, 22
    • hotspot
    • gc
    • b02

    Description

      There's a section in the test that waits up to 10 seconds for a string to be deduplicated and then does a final verification that the string was correctly deduplicated. However, the initial waiting gets passed the wrong comparison string, which has the effect that this test always waits for 10 seconds before proceeding.

      The problem is here:
                  if (!waitForDeduplication(dupString3, baseString)) {
                      if (getValue(dupString3) != getValue(internedString)) {

      where the first line should say:
                  if (!waitForDeduplication(dupString3, internedString)) {

      Attachments

        Issue Links

          Activity

            People

              stefank Stefan Karlsson
              stefank Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: