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

runtime/os/TestTracePageSizes.java: java.lang.AssertionError: Page sizes mismatch: 4 != 2048

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 23
    • hotspot

      Test fails on old kernel with thp mode "always".

      Test:
      runtime/os/TestTracePageSizes.java

      Stack trace:
      java.lang.AssertionError: Page sizes mismatch: 4 != 2048
      at TestTracePageSizes.main(TestTracePageSizes.java:307)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1575)

      Details:
      Test relaxes page size check if mapping uses THP. Detection logic depends of THPeligible line from smaps, when THP mode is "always" (default on RHEL-7). This information however only appeared in kernel 5.0. Tests passes with THP mode switched to "madvise" on RHEL-7.

            stuefe Thomas Stuefe
            zzambers Zdenek Zambersky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: