mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
7158800: Improve storage of symbol tables
Use an alternate version of hashing algorithm for symbol string tables and after a certain bucket size to improve performance Reviewed-by: pbk, kamg, dlong, kvn, fparain
This commit is contained in:
parent
7c17e9e75b
commit
55b09e7016
17 changed files with 32031 additions and 55 deletions
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "precompiled.hpp"
|
||||
#include "classfile/symbolTable.hpp"
|
||||
#include "classfile/systemDictionary.hpp"
|
||||
#include "code/codeCache.hpp"
|
||||
#include "code/icBuffer.hpp"
|
||||
|
@ -526,8 +527,20 @@ void SafepointSynchronize::do_cleanup_tasks() {
|
|||
CompilationPolicy::policy()->do_safepoint_work();
|
||||
}
|
||||
|
||||
TraceTime t4("sweeping nmethods", TraceSafepointCleanupTime);
|
||||
NMethodSweeper::scan_stacks();
|
||||
{
|
||||
TraceTime t4("sweeping nmethods", TraceSafepointCleanupTime);
|
||||
NMethodSweeper::scan_stacks();
|
||||
}
|
||||
|
||||
if (SymbolTable::needs_rehashing()) {
|
||||
TraceTime t5("rehashing symbol table", TraceSafepointCleanupTime);
|
||||
SymbolTable::rehash_table();
|
||||
}
|
||||
|
||||
if (StringTable::needs_rehashing()) {
|
||||
TraceTime t6("rehashing string table", TraceSafepointCleanupTime);
|
||||
StringTable::rehash_table();
|
||||
}
|
||||
|
||||
// rotate log files?
|
||||
if (UseGCLogFileRotation) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue