Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/compilationPolicy.hpp @ 22764:9c0966b935a9
converted select_task_blocking_aware into select_task_helper (GRAAL-1387)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 08 Jan 2016 23:45:00 +0100 |
parents | 9d78d44d3aac |
children | 7ae6a635fad0 |
comparison
equal
deleted
inserted
replaced
22763:94b7354ef0e0 | 22764:9c0966b935a9 |
---|---|
56 static bool can_be_osr_compiled(methodHandle m, int comp_level = CompLevel_all); | 56 static bool can_be_osr_compiled(methodHandle m, int comp_level = CompLevel_all); |
57 static bool is_compilation_enabled(); | 57 static bool is_compilation_enabled(); |
58 static void set_policy(CompilationPolicy* policy) { _policy = policy; } | 58 static void set_policy(CompilationPolicy* policy) { _policy = policy; } |
59 static CompilationPolicy* policy() { return _policy; } | 59 static CompilationPolicy* policy() { return _policy; } |
60 | 60 |
61 #ifdef COMPILERJVMCI | 61 static CompileTask* select_task_helper(CompileQueue* compile_queue); |
62 /** | |
63 * If in blocking compilation mode and the JVMCI compiler is in use, | |
64 * this method selects a blocking task (if any) before a non-blocking | |
65 * task. In blocking compilation mode, the CompileBroker will make | |
66 * compilations submitted by a JVMCI compiler thread non-blocking. These | |
67 * compilations should be scheduled after all blocking compilations | |
68 * to service non-compiler related compilations sooner and reduce the | |
69 * chance of such compilations timing out. | |
70 * | |
71 * @return the first non-blocking task in compile_queue if there is one otherwise | |
72 * the first task in compile_queue | |
73 */ | |
74 static CompileTask* select_task_blocking_aware(CompileQueue* compile_queue); | |
75 #endif | |
76 | 62 |
77 // Profiling | 63 // Profiling |
78 elapsedTimer* accumulated_time() { return &_accumulated_time; } | 64 elapsedTimer* accumulated_time() { return &_accumulated_time; } |
79 void print_time() PRODUCT_RETURN; | 65 void print_time() PRODUCT_RETURN; |
80 // Return initial compile level that is used with Xcomp | 66 // Return initial compile level that is used with Xcomp |