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

LFGarbageCollectedTest.java fails with OOME: "GC overhead limit exceeded"

    XMLWordPrintable

Details

    Backports

      Description

        java/lang/invoke/LFCaching/LFGarbageCollectedTest.java:
        Tested LF caching feature with MethodHandles.catchException method.
        java.lang.InternalError: DMH.invokeSpecial_LLDIJLFLIIDIIFI3F3JDLFDLLIILIFILI3FJFFIIFI4JIFIDIL73_L=Lambda(...
        ...
        Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
        ...

        The reason is BMH$Species_* classes can't be unloaded, because they are loaded using bootstrap class loader (see JDK-8078602 for details). The test creates method handles with random signatures, so the more it runs the more BMH$Species_* classes are generated.

        Attachments

          Issue Links

            Activity

              People

                kshefov Konstantin Shefov
                hseigel Harold Seigel (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: