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

OtherRegionsTable::_num_occupied not updated correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b14

      Backports

        Description

        We do a double prt->add_reference() in OtherRegionTable::add_reference() which leads to never increasing num_added_by_coarsening.

        bool added = prt->add_reference(from);
        if (prt->add_reference(from)) {
          num_added_by_coarsening++;
        }

        Simple fix is to just remove the first add_reference().

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  iwalulya Ivan Walulya
                  Reporter:
                  sjohanss Stefan Johansson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: