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

GlobalCounter::CSContext could be an enum class

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      generic
    • OS:
      generic

      Description

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hseigel Harold Seigel
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: