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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9, 11
    • 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.

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

              Created:
              Updated: