1 /* |
1 /* |
2 * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2016, 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. |
214 |
214 |
215 // Submit a given method for compilation (and update the rate). |
215 // Submit a given method for compilation (and update the rate). |
216 virtual void submit_compile(const methodHandle& mh, int bci, CompLevel level, JavaThread* thread); |
216 virtual void submit_compile(const methodHandle& mh, int bci, CompLevel level, JavaThread* thread); |
217 // event() from SimpleThresholdPolicy would call these. |
217 // event() from SimpleThresholdPolicy would call these. |
218 virtual void method_invocation_event(const methodHandle& method, const methodHandle& inlinee, |
218 virtual void method_invocation_event(const methodHandle& method, const methodHandle& inlinee, |
219 CompLevel level, nmethod* nm, JavaThread* thread); |
219 CompLevel level, CompiledMethod* nm, JavaThread* thread); |
220 virtual void method_back_branch_event(const methodHandle& method, const methodHandle& inlinee, |
220 virtual void method_back_branch_event(const methodHandle& method, const methodHandle& inlinee, |
221 int bci, CompLevel level, nmethod* nm, JavaThread* thread); |
221 int bci, CompLevel level, CompiledMethod* nm, JavaThread* thread); |
222 public: |
222 public: |
223 AdvancedThresholdPolicy() : _start_time(0) { } |
223 AdvancedThresholdPolicy() : _start_time(0) { } |
224 // Select task is called by CompileBroker. We should return a task or NULL. |
224 // Select task is called by CompileBroker. We should return a task or NULL. |
225 virtual CompileTask* select_task(CompileQueue* compile_queue); |
225 virtual CompileTask* select_task(CompileQueue* compile_queue); |
226 virtual void initialize(); |
226 virtual void initialize(); |