6652736: well known classes in system dictionary are inefficiently processed

Combine many scalar variables into a single enum-indexed array in SystemDictionary.

Reviewed-by: kvn
This commit is contained in:
John R Rose 2008-04-29 19:45:22 -07:00
parent b05f95c5a9
commit bb7ccea4ff
8 changed files with 519 additions and 555 deletions

View file

@ -541,6 +541,7 @@ bool ThreadStackTrace::is_owned_monitor_on_stack(oop object) {
Handle ThreadStackTrace::allocate_fill_stack_trace_element_array(TRAPS) {
klassOop k = SystemDictionary::stackTraceElement_klass();
assert(k != NULL, "must be loaded in 1.4+");
instanceKlassHandle ik(THREAD, k);
// Allocate an array of java/lang/StackTraceElement object