mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8257919: [JVMCI] profiling info didn't change after reprofile
Reviewed-by: kvn, redestad
This commit is contained in:
parent
b7ac32d6ee
commit
b1afed7501
5 changed files with 14 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue