equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
78 static CompileTask* allocate(); |
78 static CompileTask* allocate(); |
79 static void free(CompileTask* task); |
79 static void free(CompileTask* task); |
80 |
80 |
81 int compile_id() const { return _compile_id; } |
81 int compile_id() const { return _compile_id; } |
82 Method* method() const { return _method; } |
82 Method* method() const { return _method; } |
|
83 Method* hot_method() const { return _hot_method; } |
83 int osr_bci() const { return _osr_bci; } |
84 int osr_bci() const { return _osr_bci; } |
84 bool is_complete() const { return _is_complete; } |
85 bool is_complete() const { return _is_complete; } |
85 bool is_blocking() const { return _is_blocking; } |
86 bool is_blocking() const { return _is_blocking; } |
86 bool is_success() const { return _is_success; } |
87 bool is_success() const { return _is_success; } |
87 |
88 |
105 void set_next(CompileTask* next) { _next = next; } |
106 void set_next(CompileTask* next) { _next = next; } |
106 CompileTask* prev() const { return _prev; } |
107 CompileTask* prev() const { return _prev; } |
107 void set_prev(CompileTask* prev) { _prev = prev; } |
108 void set_prev(CompileTask* prev) { _prev = prev; } |
108 bool is_free() const { return _is_free; } |
109 bool is_free() const { return _is_free; } |
109 void set_is_free(bool val) { _is_free = val; } |
110 void set_is_free(bool val) { _is_free = val; } |
|
111 |
|
112 // RedefineClasses support |
|
113 void metadata_do(void f(Metadata*)); |
110 |
114 |
111 private: |
115 private: |
112 static void print_compilation_impl(outputStream* st, Method* method, int compile_id, int comp_level, |
116 static void print_compilation_impl(outputStream* st, Method* method, int compile_id, int comp_level, |
113 bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false, |
117 bool is_osr_method = false, int osr_bci = -1, bool is_blocking = false, |
114 const char* msg = NULL, bool short_form = false, bool cr = true); |
118 const char* msg = NULL, bool short_form = false, bool cr = true); |