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

CodeHeap expansion fails although there is uncommitted memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b105

      Depending on -XX:ReservedCodeCacheSize and -XX:CodeCacheExpansion size it may happen that the ReservedCodeCacheSize is not a multiple of CodeCacheExpansionSize leading to the last possible CodeHeap expansion to fail.

      We may disable compilation although there is still free space in the code cache:

      CodeCache extended to [0x00007ff6b0de6000, 0x00007ff6bfdde000] (251625472 bytes)
      CodeCache extended to [0x00007ff6b0de6000, 0x00007ff6bfde5000] (251654144 bytes)
      Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
      Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
      CodeCache: size=245760Kb used=245755Kb max_used=245755Kb free=4Kb
       bounds [0x00007ff6b0de6000, 0x00007ff6bfde5000, 0x00007ff6bfde6000]
       total_blobs=904 nmethods=281 adapters=498
       compilation: disabled (not enough contiguous free space left)

      Happens both with and without code cache segmentation.

            thartmann Tobias Hartmann
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: