4632N/A * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. 4632N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4632N/A * This code is free software; you can redistribute it and/or modify it 4632N/A * under the terms of the GNU General Public License version 2 only, as 4632N/A * published by the Free Software Foundation. 4632N/A * This code is distributed in the hope that it will be useful, but WITHOUT 4632N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4632N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4632N/A * version 2 for more details (a copy is included in the LICENSE file that 4632N/A * You should have received a copy of the GNU General Public License version 4632N/A * 2 along with this work; if not, write to the Free Software Foundation, 4632N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4632N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4632N/A // Check if the counter is big enough and set carry (effectively infinity). 4632N/A // Set carry flags in the counters (in methodOop and MDO). 4632N/A // Call and loop predicates determine whether a transition to a higher compilation 4632N/A // level should be performed (pointers to predicate functions are passed to common_TF(). 4632N/A // Predicates also take compiler load into account. 4632N/A // Common transition function. Given a predicate determines if a method should transition to another level. 4632N/A // call_event determines if a method should be compiled at a different 4632N/A // level with a regular invocation entry. 4632N/A // loop_event checks if a method should be OSR compiled at a different 4632N/A // Print policy-specific information if necessary 4632N/A // Check if the method can be compiled, change level if necessary 4632N/A // Submit a given method for compilation 4632N/A // Simple methods are as good being compiled with C1 as C2. 4632N/A // This function tells if it's such a function. 4632N/A // Predicate helpers are used by .*_predicate() methods as well as others. 4632N/A // They check the given counter values, multiplied by the scale against the thresholds. 4632N/A // Get a compilation level for a given method. 4632N/A // Select task is called by CompileBroker. We should return a task or NULL. 4632N/A // Tell the runtime if we think a given method is adequately profiled. 4632N/A // Initialize: set compiler thread count 4632N/A#
endif // SHARE_VM_RUNTIME_SIMPLETHRESHOLDPOLICY_HPP