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

Simplify clearing References

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b26

      Description

      We have various functions in the collectors that ultimately converge on java_lang_ref_Reference::set_referent_raw(oop). But all of those code paths are just clearing the referent, so the oop argument is always NULL. This could be simplified and made clearer by instead having java_lang_ref_Reference::clear_referent() and using similar naming in the callers.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: