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

C1 temporary code buffers are not removed with -XX:+UseDynamicNumberOfCompilerThreads

    Details

    • Subcomponent:
    • Introduced In Build:
      b11
    • Introduced In Version:
      11
    • Resolved In Build:
      b20

      Backports

        Description

        The stress test started failing with

        >Java HotSpot(TM) 64-Bit Server VM warning: CodeHeap 'non-nmethods' is full. Compiler has been disabled.

        Last time Kitchensink worked fine was in JDK11 b9. Starting from JDK 11 b13 it started failing with the following exception

        [glue.process.err] [stress.process.err] Java HotSpot(TM) 64-Bit Server VM warning: CodeHeap 'non-nmethods' is full. Compiler has been disabled.
        [glue.process.err] [stress.process.err] Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code heap size using -XX:NonNMethodCodeHeapSize=
        [glue.process.err] [stress.process.err] Java HotSpot(TM) 64-Bit Server VM warning: CodeHeap 'non-nmethods' is full. Compiler has been disabled.
        [glue.process.err] [stress.process.err] Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code heap size using -XX:NonNMethodCodeHeapSize=
        [glue.process.err] [stress.process.err] CodeHeap 'non-profiled nmethods': size=119172Kb used=110943Kb max_used=113455Kb free=8228Kb
        [glue.process.err] [stress.process.err] bounds [0x00007fb2787d1000, 0x00007fb27fc32000, 0x00007fb27fc32000]
        [glue.process.err] [stress.process.err] CodeHeap 'profiled nmethods': size=119172Kb used=105068Kb max_used=105068Kb free=14103Kb
        [glue.process.err] [stress.process.err] bounds [0x00007fb271370000, 0x00007fb2787d1000, 0x00007fb2787d1000]
        [glue.process.err] [stress.process.err] CodeHeap 'non-nmethods': size=7416Kb used=7032Kb max_used=7222Kb free=384Kb
        [glue.process.err] [stress.process.err] bounds [0x00007fb270c32000, 0x00007fb271370000, 0x00007fb271370000]
        [glue.process.err] [stress.process.err] total_blobs=690681 nmethods=7090 adapters=773
        [glue.process.err] [stress.process.err] compilation: disabled (not enough contiguous free space left)
        [glue.process.err] [stress.process.err] stopped_count=1, restarted_count=0
        [glue.process.err] [stress.process.err] full_count=0
        [glue.process.err] [stress.process.err] Java HotSpot(TM) 64-Bit Server VM warning: Initialization of C1 CompilerThread2 thread failed (no space to run compilers)
        [glue.process.err] [stress.process.err] CodeHeap 'non-profiled nmethods': size=119172Kb used=110944Kb max_used=113455Kb free=8227Kb
        [glue.process.err] [stress.process.err] bounds [0x00007fb2787d1000, 0x00007fb27fc32000, 0x00007fb27fc32000]
        [glue.process.err] [stress.process.err] CodeHeap 'profiled nmethods': size=119172Kb used=105068Kb max_used=105068Kb free=14103Kb
        [glue.process.err] [stress.process.err] bounds [0x00007fb271370000, 0x00007fb2787d1000, 0x00007fb2787d1000]
        [glue.process.err] [stress.process.err] CodeHeap 'non-nmethods': size=7416Kb used=7032Kb max_used=7222Kb free=384Kb
        [glue.process.err] [stress.process.err] bounds [0x00007fb270c32000, 0x00007fb271370000, 0x00007fb271370000]
        [glue.process.err] [stress.process.err] total_blobs=690682 nmethods=7091 adapters=773
        [glue.process.err] [stress.process.err] compilation: disabled (not enough contiguous free space left)
        [glue.process.err] [stress.process.err] stopped_count=1, restarted_count=0
        [glue.process.err] [stress.process.err] full_count=1
        [glue.process.err] [stress.process.err] Java HotSpot(TM) 64-Bit Server VM warning: Initialization of C1 CompilerThread3 thread failed (no space to run compilers)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thartmann Tobias Hartmann
                  Reporter:
                  lmesnik Leonid Mesnik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: