jdk/src/share/classes/sun/management/HotspotCompilation.java
author mchung
Tue, 17 Jan 2012 15:55:40 -0800
changeset 11530 a9d059c15b80
parent 5506 202f599c92aa
child 14342 8435a30053c1
permissions -rw-r--r--
7117570: Warnings in sun.mangement.* and its subpackages Reviewed-by: mchung, dsamersoff Contributed-by: kurchi.subhra.hazra@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
     2
 * Copyright (c) 2003, 2008, Oracle and/or its affiliates. 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
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
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
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 715
diff changeset
    23
 * questions.
2
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
11530
a9d059c15b80 7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents: 5506
diff changeset
   123
        if ((c = counters.get(SUN_CI + name)) != null) {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
            return c;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        }
11530
a9d059c15b80 7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents: 5506
diff changeset
   126
        if ((c = counters.get(COM_SUN_CI + name)) != null) {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
            return c;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        }
11530
a9d059c15b80 7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents: 5506
diff changeset
   129
        if ((c = counters.get(JAVA_CI + name)) != null) {
2
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
11530
a9d059c15b80 7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents: 5506
diff changeset
   139
        counters = new TreeMap<>();
a9d059c15b80 7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents: 5506
diff changeset
   140
        for (Counter c: getInternalCompilerCounters()) {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
            counters.put(c.getName(), c);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        compilerThreads = (LongCounter) lookup("threads");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        totalCompiles = (LongCounter) lookup("totalCompiles");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        totalBailouts = (LongCounter) lookup("totalBailouts");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        totalInvalidates = (LongCounter) lookup("totalInvalidates");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        nmethodCodeSize = (LongCounter) lookup("nmethodCodeSize");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        nmethodSize = (LongCounter) lookup("nmethodSize");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        lastMethod = (StringCounter) lookup("lastMethod");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        lastSize = (LongCounter) lookup("lastSize");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
        lastType = (LongCounter) lookup("lastType");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        lastFailedMethod = (StringCounter) lookup("lastFailedMethod");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        lastFailedType = (LongCounter) lookup("lastFailedType");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        lastInvalidatedMethod = (StringCounter) lookup("lastInvalidatedMethod");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        lastInvalidatedType = (LongCounter) lookup("lastInvalidatedType");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        numActiveThreads = (int) compilerThreads.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        // Allocate CompilerThreadInfo for compilerThread and adaptorThread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        threads = new CompilerThreadInfo[numActiveThreads+1];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        // AdaptorThread has index 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
        if (counters.containsKey(SUN_CI + "adapterThread.compiles")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
            threads[0] = new CompilerThreadInfo("adapterThread", 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
            numActiveThreads++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            threads[0] = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        for (int i = 1; i < threads.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            threads[i] = new CompilerThreadInfo("compilerThread", i-1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    public int getCompilerThreadCount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        return numActiveThreads;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    public long getTotalCompileCount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        return totalCompiles.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
    public long getBailoutCompileCount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        return totalBailouts.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    public long getInvalidatedCompileCount() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        return totalInvalidates.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    public long getCompiledMethodCodeSize() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
        return nmethodCodeSize.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    public long getCompiledMethodSize() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        return nmethodSize.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
    public java.util.List<CompilerThreadStat> getCompilerThreadStats() {
11530
a9d059c15b80 7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents: 5506
diff changeset
   201
        List<CompilerThreadStat> list = new ArrayList<>(threads.length);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        int i = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        if (threads[0] == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
            // no adaptor thread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
            i = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        for (; i < threads.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
            list.add(threads[i].getCompilerThreadStat());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        return list;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    public MethodInfo getLastCompile() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
        return new MethodInfo(lastMethod.stringValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                              (int) lastType.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
                              (int) lastSize.longValue());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    public MethodInfo getFailedCompile() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        return new MethodInfo(lastFailedMethod.stringValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
                              (int) lastFailedType.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
                              -1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    public MethodInfo getInvalidatedCompile() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        return new MethodInfo(lastInvalidatedMethod.stringValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
                              (int) lastInvalidatedType.longValue(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                              -1);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    public java.util.List<Counter> getInternalCompilerCounters() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        return jvm.getInternalCounters(CI_COUNTER_NAME_PATTERN);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
}