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

Shorten the number of GCs in UnloadingTest.java to verify a class loader not being unloaded

XMLWordPrintable

        test/jdk/java/lang/invoke/defineHiddenClass/UnloadingTest.java has several test cases to verify if a class loader is not unloaded. ForceGC::wait defaults the timeout to 1000ms * jtreg timeout factor, which is designed to expect the boolean supplier to return true. For the case when the boolean supplier never returns true, a test may want to configure the timeout to reduce its execution time.

              mchung Mandy Chung
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: