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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: hs24, hs25
    • Fix Version/s: hs24
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • OS:
      linux

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: