comparison src/share/vm/compiler/compileBroker.hpp @ 3619:5e9645341ec3

support for new RiRuntime features: add code without making it the default for the method, executing Java tasks on the compile thread, communicate nmethod reference to Java code as HotSpotCompiledMethod
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 09 Nov 2011 11:27:38 +0100
parents 65981c23c1d6
children 0e8a2a629afb
comparison
equal deleted inserted replaced
3601:3822c5969a8b 3619:5e9645341ec3
193 void add(CompileTask* task); 193 void add(CompileTask* task);
194 void remove(CompileTask* task); 194 void remove(CompileTask* task);
195 CompileTask* first() { return _first; } 195 CompileTask* first() { return _first; }
196 CompileTask* last() { return _last; } 196 CompileTask* last() { return _last; }
197 197
198 CompileTask* get(); 198 CompileTask* get(bool& interrupt);
199 199
200 bool is_empty() const { return _first == NULL; } 200 bool is_empty() const { return _first == NULL; }
201 int size() const { return _size; } 201 int size() const { return _size; }
202 202
203 void print(); 203 void print();
294 294
295 static int _sum_osr_bytes_compiled; 295 static int _sum_osr_bytes_compiled;
296 static int _sum_standard_bytes_compiled; 296 static int _sum_standard_bytes_compiled;
297 static int _sum_nmethod_size; 297 static int _sum_nmethod_size;
298 static int _sum_nmethod_code_size; 298 static int _sum_nmethod_code_size;
299
300 static bool _poll_java_queue;
299 301
300 static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, TRAPS); 302 static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, TRAPS);
301 static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count); 303 static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count);
302 static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level); 304 static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level);
303 static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level); 305 static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level);
402 404
403 static void print_compiler_threads_on(outputStream* st); 405 static void print_compiler_threads_on(outputStream* st);
404 406
405 static void bootstrap_graal(); 407 static void bootstrap_graal();
406 static void add_method_to_queue(klassOop k, Symbol* name, Symbol* signature); 408 static void add_method_to_queue(klassOop k, Symbol* name, Symbol* signature);
409
410 static void notify_java_queue();
407 }; 411 };
408 412
409 #endif // SHARE_VM_COMPILER_COMPILEBROKER_HPP 413 #endif // SHARE_VM_COMPILER_COMPILEBROKER_HPP