< prev index next >

src/hotspot/share/runtime/simpleThresholdPolicy.cpp

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "compiler/compileBroker.hpp"
  27 #include "gc/shared/gcLocker.hpp"
  28 #include "memory/resourceArea.hpp"
  29 #include "runtime/arguments.hpp"

  30 #include "runtime/simpleThresholdPolicy.hpp"
  31 #include "runtime/simpleThresholdPolicy.inline.hpp"
  32 #include "code/scopeDesc.hpp"
  33 #if INCLUDE_JVMCI
  34 #include "jvmci/jvmciRuntime.hpp"
  35 #endif
  36 
  37 #ifdef TIERED
  38 
  39 void SimpleThresholdPolicy::print_counters(const char* prefix, const methodHandle& mh) {
  40   int invocation_count = mh->invocation_count();
  41   int backedge_count = mh->backedge_count();
  42   MethodData* mdh = mh->method_data();
  43   int mdo_invocations = 0, mdo_backedges = 0;
  44   int mdo_invocations_start = 0, mdo_backedges_start = 0;
  45   if (mdh != NULL) {
  46     mdo_invocations = mdh->invocation_count();
  47     mdo_backedges = mdh->backedge_count();
  48     mdo_invocations_start = mdh->invocation_count_start();
  49     mdo_backedges_start = mdh->backedge_count_start();




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "compiler/compileBroker.hpp"
  27 #include "gc/shared/gcLocker.hpp"
  28 #include "memory/resourceArea.hpp"
  29 #include "runtime/arguments.hpp"
  30 #include "runtime/handles.inline.hpp"
  31 #include "runtime/simpleThresholdPolicy.hpp"
  32 #include "runtime/simpleThresholdPolicy.inline.hpp"
  33 #include "code/scopeDesc.hpp"
  34 #if INCLUDE_JVMCI
  35 #include "jvmci/jvmciRuntime.hpp"
  36 #endif
  37 
  38 #ifdef TIERED
  39 
  40 void SimpleThresholdPolicy::print_counters(const char* prefix, const methodHandle& mh) {
  41   int invocation_count = mh->invocation_count();
  42   int backedge_count = mh->backedge_count();
  43   MethodData* mdh = mh->method_data();
  44   int mdo_invocations = 0, mdo_backedges = 0;
  45   int mdo_invocations_start = 0, mdo_backedges_start = 0;
  46   if (mdh != NULL) {
  47     mdo_invocations = mdh->invocation_count();
  48     mdo_backedges = mdh->backedge_count();
  49     mdo_invocations_start = mdh->invocation_count_start();
  50     mdo_backedges_start = mdh->backedge_count_start();


< prev index next >