jdk/src/share/classes/sun/management/HotspotCompilation.java
author xdono
Wed, 02 Jul 2008 12:55:45 -0700
changeset 715 f16baef3a20e
parent 401 ef01e0dccd63
child 5506 202f599c92aa
permissions -rw-r--r--
6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
715
f16baef3a20e 6719955: Update copyright year
xdono
parents: 401
diff changeset
     2
 * Copyright 2003-2008 Sun Microsystems, Inc.  All Rights Reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.management;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.regex.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.util.List;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.ListIterator;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.Iterator;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.util.ArrayList;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.util.Map;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import java.util.TreeMap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import sun.management.counter.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * Implementation class of HotspotCompilationMBean interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * Internal, uncommitted management interface for Hotspot compilation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * system.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
class HotspotCompilation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    implements HotspotCompilationMBean {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    private VMManagement jvm;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     * Constructor of HotspotRuntime class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    HotspotCompilation(VMManagement vm) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
        jvm = vm;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
        initCompilerCounters();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    // Performance counter support
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    private static final String JAVA_CI    = "java.ci.";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    private static final String COM_SUN_CI = "com.sun.ci.";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    private static final String SUN_CI     = "sun.ci.";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    private static final String CI_COUNTER_NAME_PATTERN =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        JAVA_CI + "|" + COM_SUN_CI + "|" + SUN_CI;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    private LongCounter compilerThreads;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    private LongCounter totalCompiles;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    private LongCounter totalBailouts;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    private LongCounter totalInvalidates;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    private LongCounter nmethodCodeSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    private LongCounter nmethodSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    private StringCounter lastMethod;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    private LongCounter lastSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    private LongCounter lastType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    private StringCounter lastFailedMethod;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    private LongCounter lastFailedType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    private StringCounter lastInvalidatedMethod;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    private LongCounter lastInvalidatedType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    private class CompilerThreadInfo {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        int index;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        String name;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        StringCounter method;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        LongCounter type;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        LongCounter compiles;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        LongCounter time;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
        CompilerThreadInfo(String bname, int index) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
            String basename = bname + "." + index + ".";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
            this.name = bname + "-" + index;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
            this.method = (StringCounter) lookup(basename + "method");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
            this.type = (LongCounter) lookup(basename + "type");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
            this.compiles = (LongCounter) lookup(basename + "compiles");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
            this.time = (LongCounter) lookup(basename + "time");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        CompilerThreadInfo(String bname) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
            String basename = bname + ".";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
            this.name = bname;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            this.method = (StringCounter) lookup(basename + "method");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
            this.type = (LongCounter) lookup(basename + "type");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
            this.compiles = (LongCounter) lookup(basename + "compiles");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
            this.time = (LongCounter) lookup(basename + "time");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        CompilerThreadStat getCompilerThreadStat() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
            MethodInfo minfo = new MethodInfo(method.stringValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                                              (int) type.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                                              -1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
            return new CompilerThreadStat(name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                                          compiles.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                                          time.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                                          minfo);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    private CompilerThreadInfo[] threads;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    private int numActiveThreads; // number of active compiler threads
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    private Map<String, Counter> counters;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    private Counter lookup(String name) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        Counter c = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        // Only one counter exists with the specified name in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        // current implementation.  We first look up in the SUN_CI namespace
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        // since most counters are in SUN_CI namespace.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        if ((c = (Counter) counters.get(SUN_CI + name)) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
            return c;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        if ((c = (Counter) counters.get(COM_SUN_CI + name)) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
            return c;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        if ((c = (Counter) counters.get(JAVA_CI + name)) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
            return c;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        // FIXME: should tolerate if counter doesn't exist
401
ef01e0dccd63 6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents: 2
diff changeset
   134
        throw new AssertionError("Counter " + name + " does not exist");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    private void initCompilerCounters() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        // Build a tree map of the current list of performance counters
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        ListIterator iter = getInternalCompilerCounters().listIterator();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        counters = new TreeMap<String, Counter>();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        while (iter.hasNext()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
            Counter c = (Counter) iter.next();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
            counters.put(c.getName(), c);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        compilerThreads = (LongCounter) lookup("threads");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        totalCompiles = (LongCounter) lookup("totalCompiles");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        totalBailouts = (LongCounter) lookup("totalBailouts");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        totalInvalidates = (LongCounter) lookup("totalInvalidates");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        nmethodCodeSize = (LongCounter) lookup("nmethodCodeSize");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        nmethodSize = (LongCounter) lookup("nmethodSize");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
        lastMethod = (StringCounter) lookup("lastMethod");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        lastSize = (LongCounter) lookup("lastSize");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        lastType = (LongCounter) lookup("lastType");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        lastFailedMethod = (StringCounter) lookup("lastFailedMethod");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        lastFailedType = (LongCounter) lookup("lastFailedType");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        lastInvalidatedMethod = (StringCounter) lookup("lastInvalidatedMethod");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        lastInvalidatedType = (LongCounter) lookup("lastInvalidatedType");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        numActiveThreads = (int) compilerThreads.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        // Allocate CompilerThreadInfo for compilerThread and adaptorThread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        threads = new CompilerThreadInfo[numActiveThreads+1];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        // AdaptorThread has index 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        if (counters.containsKey(SUN_CI + "adapterThread.compiles")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            threads[0] = new CompilerThreadInfo("adapterThread", 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            numActiveThreads++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
            threads[0] = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        for (int i = 1; i < threads.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
            threads[i] = new CompilerThreadInfo("compilerThread", i-1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    public int getCompilerThreadCount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
        return numActiveThreads;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    public long getTotalCompileCount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        return totalCompiles.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    public long getBailoutCompileCount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        return totalBailouts.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    public long getInvalidatedCompileCount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        return totalInvalidates.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    public long getCompiledMethodCodeSize() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        return nmethodCodeSize.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    public long getCompiledMethodSize() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
        return nmethodSize.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    public java.util.List<CompilerThreadStat> getCompilerThreadStats() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        List<CompilerThreadStat> list = new ArrayList<CompilerThreadStat>(threads.length);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        int i = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        if (threads[0] == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            // no adaptor thread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            i = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
        for (; i < threads.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
            list.add(threads[i].getCompilerThreadStat());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        return list;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    public MethodInfo getLastCompile() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
        return new MethodInfo(lastMethod.stringValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
                              (int) lastType.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
                              (int) lastSize.longValue());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    public MethodInfo getFailedCompile() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
        return new MethodInfo(lastFailedMethod.stringValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
                              (int) lastFailedType.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
                              -1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    public MethodInfo getInvalidatedCompile() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
        return new MethodInfo(lastInvalidatedMethod.stringValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                              (int) lastInvalidatedType.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
                              -1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    public java.util.List<Counter> getInternalCompilerCounters() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
        return jvm.getInternalCounters(CI_COUNTER_NAME_PATTERN);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
}