hotspot/src/share/vm/interpreter/invocationCounter.hpp
changeset 46727 6e4a84748e2c
parent 41684 f02a4153a27a
equal deleted inserted replaced
46726:7801367e3cc9 46727:6e4a84748e2c
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, 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.
    60  public:
    60  public:
    61   static int InterpreterInvocationLimit;        // CompileThreshold scaled for interpreter use
    61   static int InterpreterInvocationLimit;        // CompileThreshold scaled for interpreter use
    62   static int InterpreterBackwardBranchLimit;    // A separate threshold for on stack replacement
    62   static int InterpreterBackwardBranchLimit;    // A separate threshold for on stack replacement
    63   static int InterpreterProfileLimit;           // Profiling threshold scaled for interpreter use
    63   static int InterpreterProfileLimit;           // Profiling threshold scaled for interpreter use
    64 
    64 
    65   typedef address (*Action)(methodHandle method, TRAPS);
    65   typedef address (*Action)(const methodHandle& method, TRAPS);
    66 
    66 
    67   enum PublicConstants {
    67   enum PublicConstants {
    68     count_increment      = count_grain,          // use this value to increment the 32bit _counter word
    68     count_increment      = count_grain,          // use this value to increment the 32bit _counter word
    69     count_mask_value     = count_mask,           // use this value to mask the backedge counter
    69     count_mask_value     = count_mask,           // use this value to mask the backedge counter
    70     count_shift          = number_of_noncount_bits,
    70     count_shift          = number_of_noncount_bits,