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

Clean up write_ref_field_work

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b83
    • generic
    • generic

        BarrierSet declares pure virtual write_ref_field_work.

        ModRefBarrierSet similarly declares pure virtual write_ref_field_work. There's no point to this declaration, and it should be removed.

        The various declarations of write_ref_field_work specify a default value of false for the boolean release (third) argument. It is generally considered poor practice to have defaults for virtual functions. And in this case, there's really no need for the default.

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

                Created:
                Updated:
                Resolved: