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

VM crashes with the following parameters: java -XX:InitialCodeCacheSize=500K -XX:ReservedCodeCacheSize=700k -XX:+UseCodeCacheFlushing -version

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: hs25
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None

      Description

      The reason for the crash is that there is not enough space in the code cache and:

      AdapterHandlerLibrary::initialize() contains

      BufferBlob* buf = buffer_blob(); // the temporary code buffer in CodeCache (line 2420),
      which returns NULL. As a result,
      CompileBroker::handle_full_code_cache(); in line 2457 is called. Since the default value of UseCodeCacheFlushing is true, NMethodSweeper::handle_full_code_cache(true) is executed.
      However, VMThread::_vm_queue is NULL, since void VMThread::create() (which initializes _vm_queue) is called later when starting up the VM.


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anoll Albert Noll (Inactive)
                Reporter:
                anoll Albert Noll (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: