equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2019, 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. |
195 bool CompileTask::is_unloaded() const { |
195 bool CompileTask::is_unloaded() const { |
196 return _method_holder != NULL && JNIHandles::is_weak_global_handle(_method_holder) && JNIHandles::is_global_weak_cleared(_method_holder); |
196 return _method_holder != NULL && JNIHandles::is_weak_global_handle(_method_holder) && JNIHandles::is_global_weak_cleared(_method_holder); |
197 } |
197 } |
198 |
198 |
199 // RedefineClasses support |
199 // RedefineClasses support |
200 void CompileTask::metadata_do(void f(Metadata*)) { |
200 void CompileTask::metadata_do(MetadataClosure* f) { |
201 if (is_unloaded()) { |
201 if (is_unloaded()) { |
202 return; |
202 return; |
203 } |
203 } |
204 f(method()); |
204 f->do_metadata(method()); |
205 if (hot_method() != NULL && hot_method() != method()) { |
205 if (hot_method() != NULL && hot_method() != method()) { |
206 f(hot_method()); |
206 f->do_metadata(hot_method()); |
207 } |
207 } |
208 } |
208 } |
209 |
209 |
210 // ------------------------------------------------------------------ |
210 // ------------------------------------------------------------------ |
211 // CompileTask::print_line_on_error |
211 // CompileTask::print_line_on_error |