Mercurial > hg > graal-compiler
comparison src/share/vm/compiler/compileBroker.cpp @ 13016:a196f1aaec86
8026949: -Xint flag prints wrong warning: Initialization of C1 thread failed (no space to run compilers)
Summary: Exit compiler threads early during startup so that wrong error message is not printed
Reviewed-by: iveresov, twisti
author | anoll |
---|---|
date | Fri, 25 Oct 2013 22:57:13 +0200 |
parents | 8b4bbba322d3 |
children | 78da3894b86f 2b8e28fdf503 |
comparison
equal
deleted
inserted
replaced
13013:7ae254fd0b3c | 13016:a196f1aaec86 |
---|---|
778 // | 778 // |
779 // Initialize the Compilation object | 779 // Initialize the Compilation object |
780 void CompileBroker::compilation_init() { | 780 void CompileBroker::compilation_init() { |
781 _last_method_compiled[0] = '\0'; | 781 _last_method_compiled[0] = '\0'; |
782 | 782 |
783 // No need to initialize compilation system if we do not use it. | |
784 if (!UseCompiler) { | |
785 return; | |
786 } | |
783 #ifndef SHARK | 787 #ifndef SHARK |
784 // Set the interface to the current compiler(s). | 788 // Set the interface to the current compiler(s). |
785 int c1_count = CompilationPolicy::policy()->compiler_count(CompLevel_simple); | 789 int c1_count = CompilationPolicy::policy()->compiler_count(CompLevel_simple); |
786 int c2_count = CompilationPolicy::policy()->compiler_count(CompLevel_full_optimization); | 790 int c2_count = CompilationPolicy::policy()->compiler_count(CompLevel_full_optimization); |
787 #ifdef COMPILER1 | 791 #ifdef COMPILER1 |