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

G1:UseSHM crashes the JVM if G1HeapRegionSize > os::large_page_size()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • hs24
    • hs24, hs25
    • hotspot
    • None
    • gc
    • linux

      The call to os::reserve_memory_special in ReservedSpace::initialize is ignoring the 'alignment' parameter. Because of this we get an unaligned address back, which results in various crashes.

      Repro:

      Setup shm large pages according to os_linux.cpp, and run:

      sudo java -XX:+UseG1GC -XX:G1HeapRegionSize=16M -Xmx64m -XX:-UseCompressedOops -XX:+UseLargePages
      -XX:+UseSHM -XX:+PrintGC SystemGC

      ILW: High, Low, Medium => P3, until further evaluated.

            tschatzl Thomas Schatzl
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: