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 {};

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

              Created:
              Updated:
              Resolved: