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

GlobalCounter::CSContext could be an enum class

XMLWordPrintable

    • b14
    • generic
    • generic

      The type GlobalCounter::CSContext (added by JDK-8212827) is presently a typedef for the underlying uintx type. That doesn't give much type safety though. Better would be to use a C++11 enum class, once those are available for use in HotSpot code, e.g. replace the typedef with

      enum class CSContext : uintx {};

            hseigel Harold Seigel (Inactive)
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: