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

Remove -XX:+CheckMemoryInitialization

    XMLWordPrintable

Details

    • gc
    • b25

    Backports

      Description

        -XX:+CheckMemoryInitialization seems to be broken. When running a Java program the VM crashes with:

        # Internal Error (/oracle/hs/hotspot/src/share/vm/gc/shared/collectedHeap.cpp:257), pid=10632, tid=10633
        # assert((*(intptr_t*) (addr + slot)) == ((intptr_t) badHeapWordVal)) failed: Found non badHeapWordValue in pre-allocation check

        Stack: [0x00007fafb7439000,0x00007fafb753a000], sp=0x00007fafb7537a10, free space=1018k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x137be61] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x49f
        V [libjvm.so+0x137b912] VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x7e
        V [libjvm.so+0x9c2dd6] report_vm_error(char const*, int, char const*, char const*, ...)+0x105
        V [libjvm.so+0x8f1dc1] CollectedHeap::check_for_non_bad_heap_word_value(HeapWord*, unsigned long)+0xab
        V [libjvm.so+0x606cf6] CollectedHeap::common_mem_allocate_noinit(KlassHandle, unsigned long, Thread*)+0x160
        V [libjvm.so+0x606eac] CollectedHeap::common_mem_allocate_init(KlassHandle, unsigned long, Thread*)+0x4e
        V [libjvm.so+0x6071f2] CollectedHeap::array_allocate(KlassHandle, int, int, Thread*)+0xf4
        V [libjvm.so+0x132ff8c] TypeArrayKlass::allocate_common(int, bool, Thread*)+0x114
        V [libjvm.so+0x5dcf8e] TypeArrayKlass::allocate(int, Thread*)+0x3e
        V [libjvm.so+0x10edd93] oopFactory::new_typeArray(BasicType, int, Thread*)+0x55
        V [libjvm.so+0xc9b520] InterpreterRuntime::newarray(JavaThread*, BasicType, int)+0x126

        Attachments

          Issue Links

            Activity

              People

                tschatzl Thomas Schatzl
                thartmann Tobias Hartmann
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: