Details

    • Sub-task
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • b23

    Description

      With upcoming G1 remembered set changes (JDK-8017163) which extensively use the CHT it would be advantageous to have a combined insert_and_get() method to decrease the amount of global synchronization needed as after inserting a node the code always works with it.

      I.e. instead of

      bool found = cht.insert(...)
      [do something if found]
      cht.get(..., found);
      return found.value();

      it would be nice to avoid the second global synchronization by

      bool found = cht.insert_and_get(..., found, ..);
      [do something if found]
      return found.value();

      Attachments

        Issue Links

          Activity

            People

              iwalulya Ivan Walulya
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: