< prev index next >

src/hotspot/share/gc/g1/g1StringDedupTable.cpp

Print this page
rev 50850 : 8203030: Zero s390 31 bit size_t type conflicts in shared code
Summary: Cast to size_t or change to size_t foe compatibility with other archs.
Reviewed-by: Duke
Contributed-by: chrisphi


 600         bool latin1_2 = (*entry2)->latin1();
 601         guarantee(latin1_1 != latin1_2 || !equals(value1, value2), "Table entries must not have identical arrays");
 602         entry2 = (*entry2)->next_addr();
 603       }
 604       entry1 = (*entry1)->next_addr();
 605     }
 606   }
 607 }
 608 
 609 void G1StringDedupTable::clean_entry_cache() {
 610   _entry_cache->delete_overflowed();
 611 }
 612 
 613 void G1StringDedupTable::print_statistics() {
 614   Log(gc, stringdedup) log;
 615   log.debug("  Table");
 616   log.debug("    Memory Usage: " G1_STRDEDUP_BYTES_FORMAT_NS,
 617             G1_STRDEDUP_BYTES_PARAM(_table->_size * sizeof(G1StringDedupEntry*) + (_table->_entries + _entry_cache->size()) * sizeof(G1StringDedupEntry)));
 618   log.debug("    Size: " SIZE_FORMAT ", Min: " SIZE_FORMAT ", Max: " SIZE_FORMAT, _table->_size, _min_size, _max_size);
 619   log.debug("    Entries: " UINTX_FORMAT ", Load: " G1_STRDEDUP_PERCENT_FORMAT_NS ", Cached: " UINTX_FORMAT ", Added: " UINTX_FORMAT ", Removed: " UINTX_FORMAT,
 620             _table->_entries, percent_of(_table->_entries, _table->_size), _entry_cache->size(), _entries_added, _entries_removed);
 621   log.debug("    Resize Count: " UINTX_FORMAT ", Shrink Threshold: " UINTX_FORMAT "(" G1_STRDEDUP_PERCENT_FORMAT_NS "), Grow Threshold: " UINTX_FORMAT "(" G1_STRDEDUP_PERCENT_FORMAT_NS ")",
 622             _resize_count, _table->_shrink_threshold, _shrink_load_factor * 100.0, _table->_grow_threshold, _grow_load_factor * 100.0);
 623   log.debug("    Rehash Count: " UINTX_FORMAT ", Rehash Threshold: " UINTX_FORMAT ", Hash Seed: 0x%x", _rehash_count, _rehash_threshold, _table->_hash_seed);
 624   log.debug("    Age Threshold: " UINTX_FORMAT, StringDeduplicationAgeThreshold);
 625 }


 600         bool latin1_2 = (*entry2)->latin1();
 601         guarantee(latin1_1 != latin1_2 || !equals(value1, value2), "Table entries must not have identical arrays");
 602         entry2 = (*entry2)->next_addr();
 603       }
 604       entry1 = (*entry1)->next_addr();
 605     }
 606   }
 607 }
 608 
 609 void G1StringDedupTable::clean_entry_cache() {
 610   _entry_cache->delete_overflowed();
 611 }
 612 
 613 void G1StringDedupTable::print_statistics() {
 614   Log(gc, stringdedup) log;
 615   log.debug("  Table");
 616   log.debug("    Memory Usage: " G1_STRDEDUP_BYTES_FORMAT_NS,
 617             G1_STRDEDUP_BYTES_PARAM(_table->_size * sizeof(G1StringDedupEntry*) + (_table->_entries + _entry_cache->size()) * sizeof(G1StringDedupEntry)));
 618   log.debug("    Size: " SIZE_FORMAT ", Min: " SIZE_FORMAT ", Max: " SIZE_FORMAT, _table->_size, _min_size, _max_size);
 619   log.debug("    Entries: " UINTX_FORMAT ", Load: " G1_STRDEDUP_PERCENT_FORMAT_NS ", Cached: " UINTX_FORMAT ", Added: " UINTX_FORMAT ", Removed: " UINTX_FORMAT,
 620             _table->_entries, percent_of((size_t)_table->_entries, _table->_size), _entry_cache->size(), _entries_added, _entries_removed);
 621   log.debug("    Resize Count: " UINTX_FORMAT ", Shrink Threshold: " UINTX_FORMAT "(" G1_STRDEDUP_PERCENT_FORMAT_NS "), Grow Threshold: " UINTX_FORMAT "(" G1_STRDEDUP_PERCENT_FORMAT_NS ")",
 622             _resize_count, _table->_shrink_threshold, _shrink_load_factor * 100.0, _table->_grow_threshold, _grow_load_factor * 100.0);
 623   log.debug("    Rehash Count: " UINTX_FORMAT ", Rehash Threshold: " UINTX_FORMAT ", Hash Seed: 0x%x", _rehash_count, _rehash_threshold, _table->_hash_seed);
 624   log.debug("    Age Threshold: " UINTX_FORMAT, StringDeduplicationAgeThreshold);
 625 }
< prev index next >