8273712: C2: Add mechanism for rejecting inlining of low frequency call sites and deprecate MinInliningThreshold.

Reviewed-by: kvn, rbackman
This commit is contained in:
Igor Veresov 2021-10-25 17:03:57 +00:00
parent 3221a14f9e
commit 89671aa164
6 changed files with 34 additions and 22 deletions

View file

@ -237,6 +237,7 @@ class CompilationPolicy : AllStatic {
// m must be compiled before executing it
static bool must_be_compiled(const methodHandle& m, int comp_level = CompLevel_any);
public:
static int min_invocations() { return Tier4MinInvocationThreshold; }
static int c1_count() { return _c1_count; }
static int c2_count() { return _c2_count; }
static int compiler_count(CompLevel comp_level);