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

Move and improve the AllStatic class

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b08

      Description

      Currently the AllStatic class is defined in allocation.hpp. As a result, in order to derive from AllStatic one needs to drag in all the rest of the stuff in allocation.hpp, most or all of which is often irrelevant to the code that wants to use AllStatic. It would be better if it was in some different location that dragged in fewer dependencies.

      We can also simplify its definition using C++11, making it fully standalone. Define it as

      {code}
      struct AllStatic {
        AllStatic() = deleted;
        ~AllStatic() = deleted;
      };
      {code}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: