src/share/vm/compiler/compileTask.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/compiler/compileTask.hpp

src/share/vm/compiler/compileTask.hpp

Print this page
rev 10831 : 8153013: BlockingCompilation test times out
Summary: Task has no invocation count and get stale at once
Reviewed-by: kvn

*** 67,96 **** // Fields used for logging why the compilation was initiated: jlong _time_queued; // in units of os::elapsed_counter() Method* _hot_method; // which method actually triggered this task jobject _hot_method_holder; int _hot_count; // information about its invocation counter ! const char* _comment; // more info about the task const char* _failure_reason; public: CompileTask() { _lock = new Monitor(Mutex::nonleaf+2, "CompileTaskLock"); } void initialize(int compile_id, const methodHandle& method, int osr_bci, int comp_level, ! const methodHandle& hot_method, int hot_count, const char* comment, bool is_blocking); static CompileTask* allocate(); static void free(CompileTask* task); int compile_id() const { return _compile_id; } Method* method() const { return _method; } Method* hot_method() const { return _hot_method; } int osr_bci() const { return _osr_bci; } bool is_complete() const { return _is_complete; } bool is_blocking() const { return _is_blocking; } bool is_success() const { return _is_success; } #if INCLUDE_JVMCI bool has_waiter() const { return _has_waiter; } void clear_waiter() { _has_waiter = false; } --- 67,97 ---- // Fields used for logging why the compilation was initiated: jlong _time_queued; // in units of os::elapsed_counter() Method* _hot_method; // which method actually triggered this task jobject _hot_method_holder; int _hot_count; // information about its invocation counter ! int _compile_reason; // more info about the task const char* _failure_reason; public: CompileTask() { _lock = new Monitor(Mutex::nonleaf+2, "CompileTaskLock"); } void initialize(int compile_id, const methodHandle& method, int osr_bci, int comp_level, ! const methodHandle& hot_method, int hot_count, int compile_reason, bool is_blocking); static CompileTask* allocate(); static void free(CompileTask* task); int compile_id() const { return _compile_id; } Method* method() const { return _method; } Method* hot_method() const { return _hot_method; } int osr_bci() const { return _osr_bci; } bool is_complete() const { return _is_complete; } + bool can_become_stale() const; bool is_blocking() const { return _is_blocking; } bool is_success() const { return _is_success; } #if INCLUDE_JVMCI bool has_waiter() const { return _has_waiter; } void clear_waiter() { _has_waiter = false; }
src/share/vm/compiler/compileTask.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File