/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.management;
/**
* Implementation class of HotspotCompilationMBean interface.
*
* Internal, uncommitted management interface for Hotspot compilation
* system.
*
*/
class HotspotCompilation
implements HotspotCompilationMBean {
/**
* Constructor of HotspotRuntime class.
*/
}
// Performance counter support
private class CompilerThreadInfo {
int index;
}
}
-1);
return new CompilerThreadStat(name,
minfo);
}
}
// Only one counter exists with the specified name in the
// current implementation. We first look up in the SUN_CI namespace
// since most counters are in SUN_CI namespace.
return c;
}
return c;
}
return c;
}
// FIXME: should tolerate if counter doesn't exist
}
private void initCompilerCounters() {
// Build a tree map of the current list of performance counters
}
// Allocate CompilerThreadInfo for compilerThread and adaptorThread
// AdaptorThread has index 0
} else {
}
}
}
public int getCompilerThreadCount() {
return numActiveThreads;
}
public long getTotalCompileCount() {
return totalCompiles.longValue();
}
public long getBailoutCompileCount() {
return totalBailouts.longValue();
}
public long getInvalidatedCompileCount() {
return totalInvalidates.longValue();
}
public long getCompiledMethodCodeSize() {
return nmethodCodeSize.longValue();
}
public long getCompiledMethodSize() {
return nmethodSize.longValue();
}
int i = 0;
// no adaptor thread
i = 1;
}
}
return list;
}
}
(int) lastFailedType.longValue(),
-1);
}
(int) lastInvalidatedType.longValue(),
-1);
}
}
}