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

Add getOwner() to JVMCI ResolvedJavaType

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • hotspot

      Currently there is no way to find out where a ResolvedJavaType comes from. Java's concept of classloaders as owners of the classes it loads and unloads has no representation in JVMCI yet.

      A concept similar to classloaders should be added to ResolvedJavaType.

      ResolvedJavaType#getOwner() should return an interface (e.g. `Owner`) that allows flexibility in the expression of concrete ownership.

      For most `ResolvedJavaType`s a subtype of `Owner` (e.g. `JavaOwner`) would get returned that allows to access
      * the `ClassLoader` that loaded the class that we are expressing as ResolvedJavaType in JVMCI
      * the Java Module that the underlying class belongs to

      Keeping the interface vague on the top-level would allow us to have ownership even for types that are brought into existence by other means.

            pwoegerer Paul Woegerer
            pwoegerer Paul Woegerer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: