Mercurial > hg > truffle
diff src/share/vm/classfile/systemDictionary.cpp @ 4800:94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
Summary: Added a nop tracing infrastructure, JFR makefile changes and other infrastructure used only by JFR.
Reviewed-by: acorn, sspitsyn
Contributed-by: markus.gronlund@oracle.com
author | phh |
---|---|
date | Wed, 11 Jan 2012 17:34:02 -0500 |
parents | e6b1331a51d2 |
children | b2cd0ee8f778 |
line wrap: on
line diff
--- a/src/share/vm/classfile/systemDictionary.cpp Mon Jan 09 10:27:24 2012 +0100 +++ b/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);