Mercurial > hg > truffle
comparison src/share/vm/compiler/compileBroker.hpp @ 20469:dd89808e49ba
8049530: Provide descriptive failure reason for compilation tasks removed for the queue
Reviewed-by: roland, iveresov
author | vlivanov |
---|---|
date | Mon, 14 Jul 2014 03:26:52 -0700 |
parents | 7301840ea20e |
children | 41dcdd636080 |
comparison
equal
deleted
inserted
replaced
20468:1de115720e74 | 20469:dd89808e49ba |
---|---|
57 jlong _time_queued; // in units of os::elapsed_counter() | 57 jlong _time_queued; // in units of os::elapsed_counter() |
58 Method* _hot_method; // which method actually triggered this task | 58 Method* _hot_method; // which method actually triggered this task |
59 jobject _hot_method_holder; | 59 jobject _hot_method_holder; |
60 int _hot_count; // information about its invocation counter | 60 int _hot_count; // information about its invocation counter |
61 const char* _comment; // more info about the task | 61 const char* _comment; // more info about the task |
62 const char* _failure_reason; | |
62 | 63 |
63 public: | 64 public: |
64 CompileTask() { | 65 CompileTask() { |
65 _lock = new Monitor(Mutex::nonleaf+2, "CompileTaskLock"); | 66 _lock = new Monitor(Mutex::nonleaf+2, "CompileTaskLock"); |
66 } | 67 } |
128 | 129 |
129 void log_task(xmlStream* log); | 130 void log_task(xmlStream* log); |
130 void log_task_queued(); | 131 void log_task_queued(); |
131 void log_task_start(CompileLog* log); | 132 void log_task_start(CompileLog* log); |
132 void log_task_done(CompileLog* log); | 133 void log_task_done(CompileLog* log); |
134 | |
135 void set_failure_reason(const char* reason) { | |
136 _failure_reason = reason; | |
137 } | |
133 }; | 138 }; |
134 | 139 |
135 // CompilerCounters | 140 // CompilerCounters |
136 // | 141 // |
137 // Per Compiler Performance Counters. | 142 // Per Compiler Performance Counters. |