mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
6711908: JVM needs direct access to some annotations
Add annotation extraction code to class file parser. Reviewed-by: twisti, jrose, kvn
This commit is contained in:
parent
e2fc7f742c
commit
e0cf9c652d
6 changed files with 316 additions and 43 deletions
|
@ -3505,8 +3505,10 @@ bool GraphBuilder::try_inline_full(ciMethod* callee, bool holder_known, BlockBeg
|
|||
}
|
||||
|
||||
// now perform tests that are based on flag settings
|
||||
if (callee->should_inline()) {
|
||||
if (callee->force_inline() || callee->should_inline()) {
|
||||
// ignore heuristic controls on inlining
|
||||
if (callee->force_inline())
|
||||
CompileTask::print_inlining(callee, scope()->level(), bci(), "force inline by annotation");
|
||||
} else {
|
||||
if (inline_level() > MaxInlineLevel ) INLINE_BAILOUT("too-deep inlining");
|
||||
if (recursive_inline_level(callee) > MaxRecursiveInlineLevel) INLINE_BAILOUT("too-deep recursive inlining");
|
||||
|
@ -3531,7 +3533,7 @@ bool GraphBuilder::try_inline_full(ciMethod* callee, bool holder_known, BlockBeg
|
|||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
// printing
|
||||
// printing
|
||||
if (PrintInlining) {
|
||||
print_inline_result(callee, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue