mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8146705: Improve JVMCI support for blocking compilation
Reviewed-by: twisti, never, iveresov
This commit is contained in:
parent
a0861106e3
commit
5be1924e89
8 changed files with 113 additions and 24 deletions
|
@ -56,6 +56,8 @@ class CompileTask : public CHeapObj<mtCompiler> {
|
|||
bool _is_blocking;
|
||||
#if INCLUDE_JVMCI
|
||||
bool _has_waiter;
|
||||
// Compiler thread for a blocking JVMCI compilation
|
||||
CompilerThread* _jvmci_compiler_thread;
|
||||
#endif
|
||||
int _comp_level;
|
||||
int _num_inlined_bytecodes;
|
||||
|
@ -92,6 +94,12 @@ class CompileTask : public CHeapObj<mtCompiler> {
|
|||
#if INCLUDE_JVMCI
|
||||
bool has_waiter() const { return _has_waiter; }
|
||||
void clear_waiter() { _has_waiter = false; }
|
||||
CompilerThread* jvmci_compiler_thread() const { return _jvmci_compiler_thread; }
|
||||
void set_jvmci_compiler_thread(CompilerThread* t) {
|
||||
assert(is_blocking(), "must be");
|
||||
assert((t == NULL) != (_jvmci_compiler_thread == NULL), "must be");
|
||||
_jvmci_compiler_thread = t;
|
||||
}
|
||||
#endif
|
||||
|
||||
nmethodLocker* code_handle() const { return _code_handle; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue