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

OtherRegionsTable::_num_occupied not updated correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 15
    • 14
    • hotspot
    • gc
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: