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

Make ClassLoaderData::Claim values an enum class

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • 20
    • hotspot
    • gc

    Description

      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.
       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: