Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8291456 com/sun/jdi/ClassUnloadEventTest.java failed with: Wrong number of class unload events: expected 10 got 4
  3. JDK-8291650

Add delay to ClassUnloadEventTest before exiting to give time for JVM to send all events before VMDeath

    XMLWordPrintable

Details

    • b09

    Backports

      Description

        Near the end of the test, it forces a GC so ClassUnloadEvents will be generated, and then the test immediately exits. However, the ClassUnloadEvents might not be sent out before the VMDeath is generated, and it prevents delivery of any more events. A short delay after the GC should give the JVM time to deliver the ClassUnloadEvents first.

        Attachments

          Issue Links

            Activity

              People

                cjplummer Chris Plummer
                cjplummer Chris Plummer
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: