8148195: Some InstanceKlass and MethodCounters fields can be excluded when JVMTI is not supported

Removed "previous version", "cached class file",  and breakpoint related fields and code when JVMTI is not supported

Reviewed-by: coleenp, sspitsyn
This commit is contained in:
Chris Plummer 2016-04-21 20:49:11 -07:00
parent d1b219ba3c
commit 7cd3700010
10 changed files with 103 additions and 18 deletions

View file

@ -1639,6 +1639,7 @@ bool CompressedLineNumberReadStream::read_pair() {
return true;
}
#if INCLUDE_JVMTI
Bytecodes::Code Method::orig_bytecode_at(int bci) const {
BreakpointInfo* bp = method_holder()->breakpoints();
@ -1719,6 +1720,7 @@ void Method::clear_all_breakpoints() {
clear_matches(this, -1);
}
#endif // INCLUDE_JVMTI
int Method::invocation_count() {
MethodCounters *mcs = method_counters();
@ -1784,6 +1786,8 @@ void Method::set_highest_osr_comp_level(int level) {
}
}
#if INCLUDE_JVMTI
BreakpointInfo::BreakpointInfo(Method* m, int bci) {
_bci = bci;
_name_index = m->name_index();
@ -1821,6 +1825,8 @@ void BreakpointInfo::clear(Method* method) {
method->decr_number_of_breakpoints(Thread::current());
}
#endif // INCLUDE_JVMTI
// jmethodID handling
// This is a block allocating object, sort of like JNIHandleBlock, only a