Make ClassLoaderData::Claim values an enum class

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 20
    • Component/s: hotspot
    • gc

      Currently ClassLoaderData::Claim values are simple enums, which is prone to value coercion issues like shown in JDK-8297349.

      Some quick investigation showed the following problems when doing that:
      * the code uses the enum value as bitfield, or'ing values together. This could be fixed by operator overloading
      * this adds a circular dependency due to additional includes needed (in memory/iterator.hpp); an option is to factor out the claim values into a separate header.
       

            Assignee:
            Unassigned
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: