hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 11480 1bf714e8adb4
parent 10546 e79347eebbc5
child 11628 13155c0c00b4
--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp	Mon Jan 09 10:27:24 2012 +0100
+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp	Wed Jan 11 17:34:02 2012 -0500
@@ -2131,6 +2131,12 @@
     }
   }
 
+  // Assign a classid if one has not already been assigned.  The
+  // counter does not need to be atomically incremented since this
+  // is only done while holding the SystemDictionary_lock.
+  // All loaded classes get a unique ID.
+  TRACE_INIT_ID(k);
+
   // Check for a placeholder. If there, remove it and make a
   // new system dictionary entry.
   placeholders()->find_and_remove(p_index, p_hash, name, class_loader, THREAD);