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

NMT: assert(new_rec->is_allocation_record()) failed when running with shared memory option

XMLWordPrintable

    • b23
    • x86
    • linux

        NMT assertion failed on Linux when UseSHM VM option is enabled.

        With product build, Java Heap is missing from NMT report.

        This bug is reported by Intel (copy/paste)

        Setup:

        x86_64 OEL5.7 with kernel: 2.6.32-300.27.1.el5uek

        JDK8-ea-b65 64-bit

         

        #hw13: Java Heap section is available in jcmd output.

        ~/jvm/current/bin/java -Xms6g -Xmx6g -XX:NativeMemoryTracking=summary -verbose:class -XX:+UseLargePages -XX:+UseCompressedOops -XX:ObjectAlignmentInBytes=8 -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal HelloWorld

         

        #hw12: missing Java Heap section.

        ~/jvm/current/bin/java -Xms6g -Xmx6g -XX:NativeMemoryTracking=summary -verbose:class -XX:+UseLargePages -XX:+UseSHM -XX:-UseHugeTLBFS -XX:+UseCompressedOops -XX:ObjectAlignmentInBytes=8 -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal HelloWorld

         

         

        // HelloWorld.java

         

        class HelloWorld {

            public static void main(String[] args)

                throws InterruptedException {

                for (int i=0; i<1000; i++) {

                    System.out.println("Hello World!");

                    Thread.sleep(5000);

                }

            }

        }

         



              zgu Zhengyu Gu
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: