comparison src/share/vm/interpreter/invocationCounter.hpp @ 1972:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents d5d065957597
children bd7a7ce2e264
comparison
equal deleted inserted replaced
1971:e33f46fc48ed 1972:f95d63e2154a
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24
25 #ifndef SHARE_VM_INTERPRETER_INVOCATIONCOUNTER_HPP
26 #define SHARE_VM_INTERPRETER_INVOCATIONCOUNTER_HPP
27
28 #include "memory/allocation.hpp"
29 #include "runtime/handles.hpp"
30 #include "utilities/exceptions.hpp"
24 31
25 // InvocationCounters are used to trigger actions when a limit (threshold) is reached. 32 // InvocationCounters are used to trigger actions when a limit (threshold) is reached.
26 // For different states, different limits and actions can be defined in the initialization 33 // For different states, different limits and actions can be defined in the initialization
27 // routine of InvocationCounters. 34 // routine of InvocationCounters.
28 // 35 //
132 // prevent from going to zero, to distinguish from never-executed methods 139 // prevent from going to zero, to distinguish from never-executed methods
133 if (c > 0 && new_count == 0) new_count = 1; 140 if (c > 0 && new_count == 0) new_count = 1;
134 set(state(), new_count); 141 set(state(), new_count);
135 } 142 }
136 143
144
145 #endif // SHARE_VM_INTERPRETER_INVOCATIONCOUNTER_HPP