[TESTBUG] Cover cases when initial young and old gen sizes in sum are not equal to all heap size.

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 9, 11
    • Component/s: hotspot
    • gc

      The cases were described in https://bugs.openjdk.java.net/browse/JDK-8162420

      Need to modify existing test/add a new test to cover that cases.

      Part of Sangheon description:
      We resize the generations if sum of them is mismatching from initial heap size. (collectorPolicy.cpp:531)

      line 531: if ((_initial_old_size + _initial_young_size) != _initial_heap_byte_size) {
      ...
      line 535: size_t desired_young_size = _initial_heap_byte_size - _initial_old_size;
      ...
       } else {
      line 551: _initial_young_size = desired_young_size;

      Need to cover this code by tests.

            Assignee:
            Unassigned
            Reporter:
            Michail Chernov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: