hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp
author sla
Mon, 28 Feb 2011 14:19:52 +0100
changeset 8476 7e34c2d4cf9b
parent 7397 5b173b4ca846
child 8322 8f11ba61239f
permissions -rw-r--r--
7022037: Pause when exiting if debugger is attached on windows Reviewed-by: dsamersoff, kamg, hosterda
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     1
/*
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     2
 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     4
 *
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     7
 * published by the Free Software Foundation.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     8
 *
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    13
 * accompanied this code).
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    14
 *
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    18
 *
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    21
 * questions.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    22
 *
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    23
 */
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7389
diff changeset
    25
#include "precompiled.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7389
diff changeset
    26
#include "compiler/compileBroker.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7389
diff changeset
    27
#include "memory/resourceArea.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7389
diff changeset
    28
#include "runtime/arguments.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7389
diff changeset
    29
#include "runtime/simpleThresholdPolicy.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 7389
diff changeset
    30
#include "runtime/simpleThresholdPolicy.inline.hpp"
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    31
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    32
// Print an event.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    33
void SimpleThresholdPolicy::print_event(EventType type, methodHandle mh, methodHandle imh,
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    34
                                        int bci, CompLevel level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    35
  bool inlinee_event = mh() != imh();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    36
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    37
  ttyLocker tty_lock;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    38
  tty->print("%lf: [", os::elapsedTime());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    39
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    40
  int invocation_count = mh->invocation_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    41
  int backedge_count = mh->backedge_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    42
  switch(type) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    43
  case CALL:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    44
    tty->print("call");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    45
    break;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    46
  case LOOP:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    47
    tty->print("loop");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    48
    break;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    49
  case COMPILE:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    50
    tty->print("compile");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    51
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    52
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    53
  tty->print(" level: %d ", level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    54
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    55
  ResourceMark rm;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    56
  char *method_name = mh->name_and_sig_as_C_string();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    57
  tty->print("[%s", method_name);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    58
  // We can have an inlinee, although currently we don't generate any notifications for the inlined methods.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    59
  if (inlinee_event) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    60
    char *inlinee_name = imh->name_and_sig_as_C_string();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    61
    tty->print(" [%s]] ", inlinee_name);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    62
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    63
  else tty->print("] ");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    64
  tty->print("@%d queues: %d,%d", bci, CompileBroker::queue_size(CompLevel_full_profile),
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    65
                                       CompileBroker::queue_size(CompLevel_full_optimization));
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    66
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    67
  print_specific(type, mh, imh, bci, level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    68
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    69
  if (type != COMPILE) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    70
    methodDataHandle mdh = mh->method_data();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    71
    int mdo_invocations = 0, mdo_backedges = 0;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    72
    if (mdh() != NULL) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    73
      mdo_invocations = mdh->invocation_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    74
      mdo_backedges = mdh->backedge_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    75
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    76
    tty->print(" total: %d,%d mdo: %d,%d",
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    77
               invocation_count, backedge_count,
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    78
               mdo_invocations, mdo_backedges);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    79
    tty->print(" max levels: %d,%d",
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    80
                mh->highest_comp_level(), mh->highest_osr_comp_level());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    81
    if (inlinee_event) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    82
      tty->print(" inlinee max levels: %d,%d", imh->highest_comp_level(), imh->highest_osr_comp_level());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    83
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    84
    tty->print(" compilable: ");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    85
    bool need_comma = false;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    86
    if (!mh->is_not_compilable(CompLevel_full_profile)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    87
      tty->print("c1");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    88
      need_comma = true;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    89
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    90
    if (!mh->is_not_compilable(CompLevel_full_optimization)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    91
      if (need_comma) tty->print(", ");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    92
      tty->print("c2");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    93
      need_comma = true;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    94
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    95
    if (!mh->is_not_osr_compilable()) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    96
      if (need_comma) tty->print(", ");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    97
      tty->print("osr");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    98
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
    99
    tty->print(" status:");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   100
    if (mh->queued_for_compilation()) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   101
      tty->print(" in queue");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   102
    } else tty->print(" idle");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   103
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   104
  tty->print_cr("]");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   105
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   106
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   107
void SimpleThresholdPolicy::initialize() {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   108
  if (FLAG_IS_DEFAULT(CICompilerCount)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   109
    FLAG_SET_DEFAULT(CICompilerCount, 3);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   110
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   111
  int count = CICompilerCount;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   112
  if (CICompilerCountPerCPU) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   113
    count = MAX2(log2_intptr(os::active_processor_count()), 1) * 3 / 2;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   114
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   115
  set_c1_count(MAX2(count / 3, 1));
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   116
  set_c2_count(MAX2(count - count / 3, 1));
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   117
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   118
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   119
void SimpleThresholdPolicy::set_carry_if_necessary(InvocationCounter *counter) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   120
  if (!counter->carry() && counter->count() > InvocationCounter::count_limit / 2) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   121
    counter->set_carry_flag();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   122
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   123
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   124
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   125
// Set carry flags on the counters if necessary
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   126
void SimpleThresholdPolicy::handle_counter_overflow(methodOop method) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   127
  set_carry_if_necessary(method->invocation_counter());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   128
  set_carry_if_necessary(method->backedge_counter());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   129
  methodDataOop mdo = method->method_data();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   130
  if (mdo != NULL) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   131
    set_carry_if_necessary(mdo->invocation_counter());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   132
    set_carry_if_necessary(mdo->backedge_counter());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   133
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   134
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   135
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   136
// Called with the queue locked and with at least one element
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   137
CompileTask* SimpleThresholdPolicy::select_task(CompileQueue* compile_queue) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   138
  return compile_queue->first();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   139
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   140
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   141
nmethod* SimpleThresholdPolicy::event(methodHandle method, methodHandle inlinee,
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   142
                                      int branch_bci, int bci, CompLevel comp_level, TRAPS) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   143
  if (comp_level == CompLevel_none &&
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   144
      JvmtiExport::can_post_interpreter_events()) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   145
    assert(THREAD->is_Java_thread(), "Should be java thread");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   146
    if (((JavaThread*)THREAD)->is_interp_only_mode()) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   147
      return NULL;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   148
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   149
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   150
  nmethod *osr_nm = NULL;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   151
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   152
  handle_counter_overflow(method());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   153
  if (method() != inlinee()) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   154
    handle_counter_overflow(inlinee());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   155
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   156
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   157
  if (PrintTieredEvents) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   158
    print_event(bci == InvocationEntryBci ? CALL : LOOP, method, inlinee, bci, comp_level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   159
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   160
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   161
  if (bci == InvocationEntryBci) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   162
    method_invocation_event(method, inlinee, comp_level, THREAD);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   163
  } else {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   164
    method_back_branch_event(method, inlinee, bci, comp_level, THREAD);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   165
    int highest_level = method->highest_osr_comp_level();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   166
    if (highest_level > comp_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   167
      osr_nm = method->lookup_osr_nmethod_for(bci, highest_level, false);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   168
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   169
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   170
  return osr_nm;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   171
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   172
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   173
// Check if the method can be compiled, change level if necessary
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   174
void SimpleThresholdPolicy::compile(methodHandle mh, int bci, CompLevel level, TRAPS) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   175
  // Take the given ceiling into the account.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   176
  // NOTE: You can set it to 1 to get a pure C1 version.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   177
  if ((CompLevel)TieredStopAtLevel < level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   178
    level = (CompLevel)TieredStopAtLevel;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   179
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   180
  if (level == CompLevel_none) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   181
    return;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   182
  }
7389
93110864f81e 7000349: Tiered reacts incorrectly to C1 compilation failures
iveresov
parents: 6453
diff changeset
   183
  // Check if the method can be compiled. If it cannot be compiled with C1, continue profiling
93110864f81e 7000349: Tiered reacts incorrectly to C1 compilation failures
iveresov
parents: 6453
diff changeset
   184
  // in the interpreter and then compile with C2 (the transition function will request that,
93110864f81e 7000349: Tiered reacts incorrectly to C1 compilation failures
iveresov
parents: 6453
diff changeset
   185
  // see common() ). If the method cannot be compiled with C2 but still can with C1, compile it with
93110864f81e 7000349: Tiered reacts incorrectly to C1 compilation failures
iveresov
parents: 6453
diff changeset
   186
  // pure C1.
6453
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   187
  if (!can_be_compiled(mh, level)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   188
    if (level == CompLevel_full_optimization && can_be_compiled(mh, CompLevel_simple)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   189
        compile(mh, bci, CompLevel_simple, THREAD);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   190
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   191
    return;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   192
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   193
  if (bci != InvocationEntryBci && mh->is_not_osr_compilable()) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   194
    return;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   195
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   196
  if (PrintTieredEvents) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   197
    print_event(COMPILE, mh, mh, bci, level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   198
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   199
  if (!CompileBroker::compilation_is_in_queue(mh, bci)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   200
    submit_compile(mh, bci, level, THREAD);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   201
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   202
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   203
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   204
// Tell the broker to compile the method
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   205
void SimpleThresholdPolicy::submit_compile(methodHandle mh, int bci, CompLevel level, TRAPS) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   206
  int hot_count = (bci == InvocationEntryBci) ? mh->invocation_count() : mh->backedge_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   207
  CompileBroker::compile_method(mh, bci, level, mh, hot_count, "tiered", THREAD);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   208
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   209
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   210
// Call and loop predicates determine whether a transition to a higher
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   211
// compilation level should be performed (pointers to predicate functions
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   212
// are passed to common() transition function).
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   213
bool SimpleThresholdPolicy::loop_predicate(int i, int b, CompLevel cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   214
  switch(cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   215
  case CompLevel_none:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   216
  case CompLevel_limited_profile: {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   217
    return loop_predicate_helper<CompLevel_none>(i, b, 1.0);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   218
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   219
  case CompLevel_full_profile: {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   220
    return loop_predicate_helper<CompLevel_full_profile>(i, b, 1.0);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   221
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   222
  default:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   223
    return true;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   224
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   225
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   226
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   227
bool SimpleThresholdPolicy::call_predicate(int i, int b, CompLevel cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   228
  switch(cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   229
  case CompLevel_none:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   230
  case CompLevel_limited_profile: {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   231
    return call_predicate_helper<CompLevel_none>(i, b, 1.0);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   232
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   233
  case CompLevel_full_profile: {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   234
    return call_predicate_helper<CompLevel_full_profile>(i, b, 1.0);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   235
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   236
  default:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   237
    return true;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   238
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   239
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   240
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   241
// Determine is a method is mature.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   242
bool SimpleThresholdPolicy::is_mature(methodOop method) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   243
  if (is_trivial(method)) return true;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   244
  methodDataOop mdo = method->method_data();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   245
  if (mdo != NULL) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   246
    int i = mdo->invocation_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   247
    int b = mdo->backedge_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   248
    double k = ProfileMaturityPercentage / 100.0;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   249
    return call_predicate_helper<CompLevel_full_profile>(i, b, k) ||
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   250
           loop_predicate_helper<CompLevel_full_profile>(i, b, k);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   251
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   252
  return false;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   253
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   254
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   255
// Common transition function. Given a predicate determines if a method should transition to another level.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   256
CompLevel SimpleThresholdPolicy::common(Predicate p, methodOop method, CompLevel cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   257
  CompLevel next_level = cur_level;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   258
  int i = method->invocation_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   259
  int b = method->backedge_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   260
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   261
  switch(cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   262
  case CompLevel_none:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   263
    {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   264
      methodDataOop mdo = method->method_data();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   265
      if (mdo != NULL) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   266
        int mdo_i = mdo->invocation_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   267
        int mdo_b = mdo->backedge_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   268
        // If we were at full profile level, would we switch to full opt?
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   269
        if ((this->*p)(mdo_i, mdo_b, CompLevel_full_profile)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   270
          next_level = CompLevel_full_optimization;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   271
        }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   272
      }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   273
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   274
    if (next_level == cur_level && (this->*p)(i, b, cur_level)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   275
      if (is_trivial(method)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   276
        next_level = CompLevel_simple;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   277
      } else {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   278
        next_level = CompLevel_full_profile;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   279
      }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   280
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   281
    break;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   282
  case CompLevel_limited_profile:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   283
  case CompLevel_full_profile:
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   284
    if (is_trivial(method)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   285
      next_level = CompLevel_simple;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   286
    } else {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   287
      methodDataOop mdo = method->method_data();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   288
      guarantee(mdo != NULL, "MDO should always exist");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   289
      if (mdo->would_profile()) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   290
        int mdo_i = mdo->invocation_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   291
        int mdo_b = mdo->backedge_count();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   292
        if ((this->*p)(mdo_i, mdo_b, cur_level)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   293
          next_level = CompLevel_full_optimization;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   294
        }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   295
      } else {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   296
        next_level = CompLevel_full_optimization;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   297
      }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   298
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   299
    break;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   300
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   301
  return next_level;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   302
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   303
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   304
// Determine if a method should be compiled with a normal entry point at a different level.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   305
CompLevel SimpleThresholdPolicy::call_event(methodOop method,  CompLevel cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   306
  CompLevel highest_level = (CompLevel)method->highest_comp_level();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   307
  if (cur_level == CompLevel_none && highest_level > cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   308
    // TODO: We may want to try to do more extensive reprofiling in this case.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   309
    return highest_level;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   310
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   311
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   312
  CompLevel osr_level = (CompLevel) method->highest_osr_comp_level();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   313
  CompLevel next_level = common(&SimpleThresholdPolicy::call_predicate, method, cur_level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   314
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   315
  // If OSR method level is greater than the regular method level, the levels should be
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   316
  // equalized by raising the regular method level in order to avoid OSRs during each
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   317
  // invocation of the method.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   318
  if (osr_level == CompLevel_full_optimization && cur_level == CompLevel_full_profile) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   319
    methodDataOop mdo = method->method_data();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   320
    guarantee(mdo != NULL, "MDO should not be NULL");
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   321
    if (mdo->invocation_count() >= 1) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   322
      next_level = CompLevel_full_optimization;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   323
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   324
  } else {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   325
    next_level = MAX2(osr_level, next_level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   326
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   327
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   328
  return next_level;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   329
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   330
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   331
// Determine if we should do an OSR compilation of a given method.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   332
CompLevel SimpleThresholdPolicy::loop_event(methodOop method, CompLevel cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   333
  if (cur_level == CompLevel_none) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   334
    // If there is a live OSR method that means that we deopted to the interpreter
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   335
    // for the transition.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   336
    CompLevel osr_level = (CompLevel)method->highest_osr_comp_level();
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   337
    if (osr_level > CompLevel_none) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   338
      return osr_level;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   339
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   340
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   341
  return common(&SimpleThresholdPolicy::loop_predicate, method, cur_level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   342
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   343
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   344
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   345
// Handle the invocation event.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   346
void SimpleThresholdPolicy::method_invocation_event(methodHandle mh, methodHandle imh,
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   347
                                              CompLevel level, TRAPS) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   348
  if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh, InvocationEntryBci)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   349
    CompLevel next_level = call_event(mh(), level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   350
    if (next_level != level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   351
      compile(mh, InvocationEntryBci, next_level, THREAD);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   352
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   353
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   354
}
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   355
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   356
// Handle the back branch event. Notice that we can compile the method
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   357
// with a regular entry from here.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   358
void SimpleThresholdPolicy::method_back_branch_event(methodHandle mh, methodHandle imh,
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   359
                                               int bci, CompLevel level, TRAPS) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   360
  // If the method is already compiling, quickly bail out.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   361
  if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh, bci)) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   362
    // Use loop event as an opportinity to also check there's been
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   363
    // enough calls.
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   364
    CompLevel cur_level = comp_level(mh());
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   365
    CompLevel next_level = call_event(mh(), cur_level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   366
    CompLevel next_osr_level = loop_event(mh(), level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   367
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   368
    next_level = MAX2(next_level,
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   369
                      next_osr_level < CompLevel_full_optimization ? next_osr_level : cur_level);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   370
    bool is_compiling = false;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   371
    if (next_level != cur_level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   372
      compile(mh, InvocationEntryBci, next_level, THREAD);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   373
      is_compiling = true;
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   374
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   375
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   376
    // Do the OSR version
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   377
    if (!is_compiling && next_osr_level != level) {
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   378
      compile(mh, bci, next_osr_level, THREAD);
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   379
    }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   380
  }
970dc585ab63 6953144: Tiered compilation
iveresov
parents:
diff changeset
   381
}