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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • hs25
    • hotspot
    • None

      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.


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

              Created:
              Updated:
              Resolved: