< prev index next >

src/hotspot/share/runtime/simpleThresholdPolicy.cpp

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  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 "memory/resourceArea.hpp"
  28 #include "runtime/arguments.hpp"
  29 #include "runtime/simpleThresholdPolicy.hpp"
  30 #include "runtime/simpleThresholdPolicy.inline.hpp"
  31 #include "code/scopeDesc.hpp"
  32 #if INCLUDE_JVMCI
  33 #include "jvmci/jvmciRuntime.hpp"
  34 #endif
  35 
  36 #ifdef TIERED
  37 
  38 void SimpleThresholdPolicy::print_counters(const char* prefix, const methodHandle& mh) {
  39   int invocation_count = mh->invocation_count();
  40   int backedge_count = mh->backedge_count();
  41   MethodData* mdh = mh->method_data();
  42   int mdo_invocations = 0, mdo_backedges = 0;
  43   int mdo_invocations_start = 0, mdo_backedges_start = 0;
  44   if (mdh != NULL) {
  45     mdo_invocations = mdh->invocation_count();
  46     mdo_backedges = mdh->backedge_count();




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  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();


< prev index next >