6926697: "optimized" VM build failed: The type "AdapterHandlerTableIterator" is incomplete
Define AdapterHandlerTableIterator class as non product instead of debug. Reviewed-by: never
This commit is contained in:
parent
9110d86267
commit
892336beb1
@ -1947,7 +1947,7 @@ class AdapterHandlerTable : public BasicHashtable {
|
||||
|
||||
private:
|
||||
|
||||
#ifdef ASSERT
|
||||
#ifndef PRODUCT
|
||||
static int _lookups; // number of calls to lookup
|
||||
static int _buckets; // number of buckets checked
|
||||
static int _equals; // number of buckets checked with matching hash
|
||||
@ -1983,16 +1983,16 @@ class AdapterHandlerTable : public BasicHashtable {
|
||||
|
||||
// Find a entry with the same fingerprint if it exists
|
||||
AdapterHandlerEntry* lookup(int total_args_passed, BasicType* sig_bt) {
|
||||
debug_only(_lookups++);
|
||||
NOT_PRODUCT(_lookups++);
|
||||
AdapterFingerPrint fp(total_args_passed, sig_bt);
|
||||
unsigned int hash = fp.compute_hash();
|
||||
int index = hash_to_index(hash);
|
||||
for (AdapterHandlerEntry* e = bucket(index); e != NULL; e = e->next()) {
|
||||
debug_only(_buckets++);
|
||||
NOT_PRODUCT(_buckets++);
|
||||
if (e->hash() == hash) {
|
||||
debug_only(_equals++);
|
||||
NOT_PRODUCT(_equals++);
|
||||
if (fp.equals(e->fingerprint())) {
|
||||
#ifdef ASSERT
|
||||
#ifndef PRODUCT
|
||||
if (fp.is_compact()) _compact++;
|
||||
_hits++;
|
||||
#endif
|
||||
@ -2003,6 +2003,7 @@ class AdapterHandlerTable : public BasicHashtable {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
void print_statistics() {
|
||||
ResourceMark rm;
|
||||
int longest = 0;
|
||||
@ -2021,15 +2022,14 @@ class AdapterHandlerTable : public BasicHashtable {
|
||||
}
|
||||
tty->print_cr("AdapterHandlerTable: empty %d longest %d total %d average %f",
|
||||
empty, longest, total, total / (double)nonempty);
|
||||
#ifdef ASSERT
|
||||
tty->print_cr("AdapterHandlerTable: lookups %d buckets %d equals %d hits %d compact %d",
|
||||
_lookups, _buckets, _equals, _hits, _compact);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
#ifdef ASSERT
|
||||
#ifndef PRODUCT
|
||||
|
||||
int AdapterHandlerTable::_lookups;
|
||||
int AdapterHandlerTable::_buckets;
|
||||
|
Loading…
x
Reference in New Issue
Block a user