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

Simplify clearing References

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • hotspot
    • gc
    • b26

      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.

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

              Created:
              Updated:
              Resolved: