Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8242796: Fix client build failure
Browse files Browse the repository at this point in the history
Reviewed-by: kvn
  • Loading branch information
Yang Zhang committed Apr 21, 2020
1 parent 0bc7cc4 commit 5a665c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hotspot/share/compiler/compileBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ CompilerCounters::CompilerCounters() {
_compile_type = CompileBroker::no_compile;
}

#if INCLUDE_JFR
#if INCLUDE_JFR && COMPILER2_OR_JVMCI
// It appends new compiler phase names to growable array phase_names(a new CompilerPhaseType mapping
// in compiler/compilerEvent.cpp) and registers it with its serializer.
//
Expand All @@ -608,6 +608,7 @@ void register_jfr_phasetype_serializer(CompilerType compiler_type) {
jvmci_phase_names->append("NOT_A_PHASE_NAME");
CompilerEvent::PhaseEvent::register_phases(jvmci_phase_names);
first_registration = false;
#ifdef COMPILER2
} else if (compiler_type == compiler_c2) {
assert(first_registration, "invariant"); // c2 must be registered first.
GrowableArray<const char*>* c2_phase_names = new GrowableArray<const char*>(PHASE_NUM_TYPES);
Expand All @@ -616,9 +617,10 @@ void register_jfr_phasetype_serializer(CompilerType compiler_type) {
}
CompilerEvent::PhaseEvent::register_phases(c2_phase_names);
first_registration = false;
#endif // COMPILER2
}
}
#endif // INCLUDE_JFR
#endif // INCLUDE_JFR && COMPILER2_OR_JVMCI

// ------------------------------------------------------------------
// CompileBroker::compilation_init
Expand Down

0 comments on commit 5a665c3

Please sign in to comment.