mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 13:54:38 +02:00
8058564: Tiered compilation performance drop in PIT
Ensure MethodCounters are created before method is enqueued for compilation Reviewed-by: kvn, drchase, jiangli
This commit is contained in:
parent
964c442938
commit
ad7e67c98f
4 changed files with 18 additions and 17 deletions
|
@ -1206,6 +1206,12 @@ void CompileBroker::compile_method_base(methodHandle method,
|
|||
return;
|
||||
}
|
||||
|
||||
if (TieredCompilation) {
|
||||
// Tiered policy requires MethodCounters to exist before adding a method to
|
||||
// the queue. Create if we don't have them yet.
|
||||
method->get_method_counters(thread);
|
||||
}
|
||||
|
||||
// Outputs from the following MutexLocker block:
|
||||
CompileTask* task = NULL;
|
||||
bool blocking = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue