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

    • b09

        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.

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

                Created:
                Updated:
                Resolved: