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

Use ForceGC for cleaner test cases

XMLWordPrintable

        There is a jtreg test library to help with ensuring the GC runs, `test/lib/jdk/test/lib/util/ForceGC.java`. And there are also some test case use System.gc() directly for cleaner testing. It looks like a good idea to replace the test code that runs/checks the GC with `ForceGC.await()`.

              xuelei Xuelei Fan
              xuelei Xuelei Fan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: