8263582: WB_IsMethodCompilable ignores compiler directives

Reviewed-by: iveresov, kvn, neliasso
This commit is contained in:
Christian Hagedorn 2021-03-31 06:33:45 +00:00
parent 928fa5b5f9
commit ab6faa607b
5 changed files with 141 additions and 13 deletions

View file

@ -237,7 +237,7 @@ class CompilationPolicy : AllStatic {
static jlong start_time() { return _start_time; }
// m must be compiled before executing it
static bool must_be_compiled(const methodHandle& m, int comp_level = CompLevel_all);
static bool must_be_compiled(const methodHandle& m, int comp_level = CompLevel_any);
public:
static int c1_count() { return _c1_count; }
static int c2_count() { return _c2_count; }
@ -248,9 +248,9 @@ public:
static void compile_if_required(const methodHandle& m, TRAPS);
// m is allowed to be compiled
static bool can_be_compiled(const methodHandle& m, int comp_level = CompLevel_all);
static bool can_be_compiled(const methodHandle& m, int comp_level = CompLevel_any);
// m is allowed to be osr compiled
static bool can_be_osr_compiled(const methodHandle& m, int comp_level = CompLevel_all);
static bool can_be_osr_compiled(const methodHandle& m, int comp_level = CompLevel_any);
static bool is_compilation_enabled();
static void do_safepoint_work() { }