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

Unnecessarily global friend functions for relocInfo

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b04

      The functions filler_relocInfo and prefix_relocInfo are defined (inline) at global scope. They are declared as friends of relocInfo, so they have access to a private constructor of that class.

      There's really no good reason for these to be polluting the global namespace. They should just be public static members of relocInfo (perhaps with name adjustment).

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

              Created:
              Updated:
              Resolved: