changeset 23981:f272ef93c3a3

added HotSpotResolvedObjectType.getFingerprint
author Doug Simon <doug.simon@oracle.com>
date Mon, 05 Dec 2016 11:44:02 +0100
parents d93bfdcbda64
children 49423b7aaea5
files jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectType.java
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectType.java	Fri Dec 02 15:04:11 2016 +0100
+++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectType.java	Mon Dec 05 11:44:02 2016 +0100
@@ -106,4 +106,14 @@
     HotSpotResolvedObjectType getEnclosingType();
 
     ResolvedJavaMethod getClassInitializer();
+
+    /**
+     * Gets the fingerprint for this type.
+     *
+     * @return the value of the fingerprint ({@code 0} for arrays and synthetic classes or if the VM
+     *         does not support fingerprints)
+     */
+    default long getFingerprint() {
+        return 0L;
+    }
 }