8153394: Add Unified Logging to make it easy to trace time taken in initPhase2

Added modules+startuptime logging for initPhase2 via TraceTime class

Reviewed-by: rehn, hseigel, mockner
This commit is contained in:
Rachel Protacio 2016-06-17 10:46:55 -04:00
parent 6ef961edbd
commit 36ac8c8a00
2 changed files with 22 additions and 0 deletions

View file

@ -3405,6 +3405,8 @@ static void call_initPhase1(TRAPS) {
//
// After phase 2, The VM will begin search classes from -Xbootclasspath/a.
static void call_initPhase2(TRAPS) {
TraceTime timer("Phase2 initialization", TRACETIME_LOG(Info, modules, startuptime));
Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_System(), true, CHECK);
instanceKlassHandle klass (THREAD, k);