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

Gtest CollectorPolicy.young_scaled_initial_ergo_vm fails on memory constrained devices

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 18
    • hotspot
    • None
    • gc

      [==========] Running 1 test from 1 test case.
      [----------] Global test environment set-up.
      [----------] 1 test from CollectorPolicy
      [ RUN ] CollectorPolicy.young_scaled_initial_ergo_vm
      [0.498s][warning][gc,ergo] Inconsistency between generation sizes and heap size, resizing the generations to fit the heap.
      /home/cgo/dev/openjdk/jdk/test/hotspot/gtest/gc/shared/test_collectorPolicy.cpp:124: Failure
      Expected equality of these values:
        expected
          Which is: 34930688
        NewSize
          Which is: 35651584
      /home/cgo/dev/openjdk/jdk/test/hotspot/gtest/gc/shared/test_collectorPolicy.cpp:80: Failure
      Expected: checker->execute() doesn't generate new fatal failures in the current thread.
        Actual: it does.
      [ FAILED ] CollectorPolicy.young_scaled_initial_ergo_vm (1 ms)
      [----------] 1 test from CollectorPolicy (498 ms total)

      [----------] Global test environment tear-down
      [==========] 1 test from 1 test case ran. (499 ms total)
      [ PASSED ] 0 tests.
      [ FAILED ] 1 test, listed below:
      [ FAILED ] CollectorPolicy.young_scaled_initial_ergo_vm

      This can be reproduced on a linux based system using systemd as follows:

      $ systemd-run --user --scope -p MemoryMax=512M ./build/linux-x86_64-server-fastdebug/images/test/hotspot/gtest/server/gtestLauncher -jdk ./build/linux-x86_64-server-fastdebug/images/jdk --gtest_filter=CollectorPolicy.young_scaled_initial_ergo_vm

      We have devices with as little as 256M memory, which run JTreg (using a huge swap space).

            Unassigned Unassigned
            cgo Christoph Göttschkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: