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

The value of full_count in the message of insufficient codecache is wrong

XMLWordPrintable

    • b23
    • generic
    • generic

        ADDITIONAL SYSTEM INFORMATION :
        Microsoft Windows [Version 10.0.19041.1237]

        A DESCRIPTION OF THE PROBLEM :
        The value of full_count in the message of insufficient codecache is 0 even though a codecache shortage occurred.
        full_count is the number of times the code heap was full.
        This issue is common to all operating systems.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        javac WasteCodeCache.java
        java -XX:ReservedCodeCacheSize=2496k -XX:-UseCodeCacheFlushing WasteCodeCache

        EXPECTED OUTPUT :
        [16.139s][warning][codecache] CodeCache is full. Compiler has been disabled.
        [16.140s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
        OpenJDK 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
        OpenJDK 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
        CodeCache: size=2496Kb used=2180Kb max_used=2300Kb free=315Kb
         bounds [0x0000028b91320000, 0x0000028b91590000, 0x0000028b91590000]
         total_blobs=1277 nmethods=971 adapters=217
         compilation: disabled (not enough contiguous free space left)
                      stopped_count=1, restarted_count=0
         full_count=1

        ACTUAL :
        [16.139s][warning][codecache] CodeCache is full. Compiler has been disabled.
        [16.140s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
        OpenJDK 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
        OpenJDK 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
        CodeCache: size=2496Kb used=2180Kb max_used=2300Kb free=315Kb
         bounds [0x0000028b91320000, 0x0000028b91590000, 0x0000028b91590000]
         total_blobs=1277 nmethods=971 adapters=217
         compilation: disabled (not enough contiguous free space left)
                      stopped_count=1, restarted_count=0
         full_count=0

              tholenstein Tobias Holenstein (Inactive)
              myano Masanori Yano
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: