mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
d1b219ba3c
commit
7cd3700010
10 changed files with 103 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue