src/hotspot/share/classfile/klassFactory.cpp
changeset 47668 fc4cfca10556
parent 47216 71c04702a3d5
child 47991 a474466c4fdb
--- a/src/hotspot/share/classfile/klassFactory.cpp	Wed Oct 11 17:11:28 2017 -0700
+++ b/src/hotspot/share/classfile/klassFactory.cpp	Thu Oct 19 19:23:48 2017 -0700
@@ -223,8 +223,8 @@
     result->set_cached_class_file(cached_class_file);
   }
 
-  if (InstanceKlass::should_store_fingerprint()) {
-    result->store_fingerprint(!result->is_anonymous() ? stream->compute_fingerprint() : 0);
+  if (result->should_store_fingerprint()) {
+    result->store_fingerprint(stream->compute_fingerprint());
   }
 
   TRACE_KLASS_CREATION(result, parser, THREAD);