< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java

Print this page
@@ -85,10 +85,11 @@
      private HotSpotResolvedObjectTypeImpl javaLangClass;
      private HotSpotResolvedObjectTypeImpl throwableType;
      private HotSpotResolvedObjectTypeImpl serializableType;
      private HotSpotResolvedObjectTypeImpl cloneableType;
      private HotSpotResolvedObjectTypeImpl enumType;
+     private HotSpotResolvedObjectTypeImpl identityObjectType;
  
      HotSpotResolvedObjectTypeImpl getJavaLangObject() {
          if (javaLangObject == null) {
              javaLangObject = (HotSpotResolvedObjectTypeImpl) fromClass(Object.class);
          }

@@ -121,10 +122,17 @@
              serializableType = (HotSpotResolvedObjectTypeImpl) fromClass(Serializable.class);
          }
          return serializableType;
      }
  
+     HotSpotResolvedObjectTypeImpl getJavaLangIdentityObject() {
+         if (identityObjectType == null) {
+             identityObjectType = (HotSpotResolvedObjectTypeImpl) fromClass(IdentityObject.class);
+         }
+         return identityObjectType;
+     }
+ 
      HotSpotResolvedObjectTypeImpl getJavaLangThrowable() {
          if (throwableType == null) {
              throwableType = (HotSpotResolvedObjectTypeImpl) fromClass(Throwable.class);
          }
          return throwableType;
< prev index next >