8257919: [JVMCI] profiling info didn't change after reprofile

Reviewed-by: kvn, redestad
This commit is contained in:
Vladimir Ivanov 2020-12-11 21:50:49 +00:00
parent b7ac32d6ee
commit b1afed7501
5 changed files with 14 additions and 12 deletions

View file

@ -1206,7 +1206,7 @@ void MethodData::post_initialize(BytecodeStream* stream) {
MethodData::MethodData(const methodHandle& method)
: _method(method()),
_extra_data_lock(Mutex::leaf, "MDO extra data lock"),
_compiler_counters(method()),
_compiler_counters(),
_parameters_type_data_di(parameters_uninitialized) {
initialize();
}
@ -1217,6 +1217,7 @@ void MethodData::initialize() {
ResourceMark rm(thread);
init();
set_creation_mileage(mileage_of(method()));
// Go through the bytecodes and allocate and initialize the
// corresponding data cells.
@ -1281,6 +1282,7 @@ void MethodData::initialize() {
}
void MethodData::init() {
_compiler_counters = CompilerCounters(); // reset compiler counters
_invocation_counter.init();
_backedge_counter.init();
_invocation_counter_start = 0;