mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-24 05:14:52 +02:00
8049530: Provide descriptive failure reason for compilation tasks removed for the queue
Reviewed-by: roland, iveresov
This commit is contained in:
parent
3dd313825d
commit
9b8aaef575
3 changed files with 14 additions and 3 deletions
|
@ -64,6 +64,7 @@ class CompileTask : public CHeapObj<mtCompiler> {
|
|||
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() {
|
||||
|
@ -138,6 +139,10 @@ public:
|
|||
void log_task_queued();
|
||||
void log_task_start(CompileLog* log);
|
||||
void log_task_done(CompileLog* log);
|
||||
|
||||
void set_failure_reason(const char* reason) {
|
||||
_failure_reason = reason;
|
||||
}
|
||||
};
|
||||
|
||||
// CompilerCounters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue