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

Remove ConstantPoolCache::is_constantPoolCache

    XMLWordPrintable

Details

    • b07

    Description

      This is relic code when we had PermGen. ConstantPoolCache is now a direct subclass of MetaspaceObj so it doesn't have a vtable. Also, it has no subclasses, so this function serves no purposes.

      ./share/oops/cpCache.cpp: assert(is_constantPoolCache(), "obj must be constant pool cache");
      ./share/oops/cpCache.cpp: assert(is_constantPoolCache(), "obj must be constant pool cache");
      ./share/oops/cpCache.cpp: guarantee(is_constantPoolCache(), "obj must be constant pool cache");
      ./share/oops/constantPool.cpp: guarantee(cache()->is_constantPoolCache(), "should be constant pool cache");
      ./share/oops/cpCache.hpp: bool is_constantPoolCache() const { return true; }

      Attachments

        Activity

          People

            coleenp Coleen Phillimore
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: