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

Add a utility function for mirror to InstanceKlass

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 21
    • 21
    • hotspot

      There are many instances in the JVM where we have a mirror and want the InstanceKlass pointer instead.

      Doing this access inline seems to help microbenchmarks a little bit for the callers of static InstanceKlass::allocate_instance(java_mirror, TRAPS).

      The utility function can be inlined in instanceKlass.inline.hpp (or klass.inline.hpp ?) and used in several other places as a cleanup.

      See discussion in:
      https://github.com/openjdk/jdk/pull/12782

            azafari Afshin Zafari
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: