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

Simplify clearing References

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • hotspot
    • gc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: