8213014: Crash in CompileBroker::make_thread due to OOM

Added missing null checks and checks for pending exception.

Reviewed-by: kvn, dholmes, mdoerr
This commit is contained in:
Tobias Hartmann 2018-11-01 14:15:35 +01:00
parent b77f937f7e
commit 2fe0a0f20b
2 changed files with 16 additions and 15 deletions

View file

@ -230,8 +230,7 @@ class CompileBroker: AllStatic {
static volatile int _print_compilation_warning;
static Handle create_thread_oop(const char* name, TRAPS);
static JavaThread* make_thread(jobject thread_oop, CompileQueue* queue,
AbstractCompiler* comp, bool compiler_thread, TRAPS);
static JavaThread* make_thread(jobject thread_oop, CompileQueue* queue, AbstractCompiler* comp, TRAPS);
static void init_compiler_sweeper_threads();
static void possibly_add_compiler_threads();
static bool compilation_is_complete (const methodHandle& method, int osr_bci, int comp_level);