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

Remove oop coupling with InstanceKlass subclasses

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b93
    • generic
    • generic

      It's a bit fishy for oop/oopDesc to have knowlege about the subclasses of InstanceKlass, as provided via the is_instanceXXX suite of functions (is_instanceRef, is_instanceMirror, is_instanceClassLoader). There are also very few uses of these functions. So we should just remove them.

      There are:
      Two uses of is_instanceRef, both in assertions.
      One use of is_instanceMirror.
      No uses of is_instanceClassLoader.

      Also remove the unused (and in some cases misspelled) is_instanceRef_noline, is_instanceMirror_noinline, and is_instanceClassLoader_noline. [These also use the unsuffixed functions, but I didn't include them in the above counts, since none of these are used.]

            coleenp Coleen Phillimore
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: