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

Move and improve the AllStatic class

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: