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

Improve droppingMessage test in async UL tests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None

      Hi,

      The test for dropping messages have started to fail on aarch64 fast debug on Linux only (see JDK-8352568). It's currently unclear why this occurs. To figure out why, I've extended the test to do emit more diagnostic information if it fails.

          Fail if the asynchronous mode isn't "drop" (the test makes no sense with stalling mode)
          Print the entirety of the log file produced if no missing messages are found
          If the thread running the test is unattached, then async UL will emit log messages in synchronous mode. Therefore, if the thread is unattached, the test now fails with an error message.

      With these changes integrated, I hope to be able to find the actual culprit of the bug.

            jsjolen Johan Sjölen
            jsjolen Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: