8215205: javaVFrame much slower than vframeStream

Reviewed-by: mchung, thartmann
This commit is contained in:
Dean Long 2018-12-18 12:36:27 -08:00
parent 84105b36fd
commit 32ea2e5343
7 changed files with 75 additions and 3 deletions

View file

@ -51,9 +51,9 @@ ScopeDesc::ScopeDesc(const CompiledMethod* code, int decode_offset, bool reexecu
}
ScopeDesc::ScopeDesc(const ScopeDesc* parent) {
void ScopeDesc::initialize(const ScopeDesc* parent, int decode_offset) {
_code = parent->_code;
_decode_offset = parent->_sender_decode_offset;
_decode_offset = decode_offset;
_objects = parent->_objects;
_reexecute = false; //reexecute only applies to the first scope
_rethrow_exception = false;
@ -61,6 +61,14 @@ ScopeDesc::ScopeDesc(const ScopeDesc* parent) {
decode_body();
}
ScopeDesc::ScopeDesc(const ScopeDesc* parent) {
initialize(parent, parent->_sender_decode_offset);
}
ScopeDesc::ScopeDesc(const ScopeDesc* parent, int decode_offset) {
initialize(parent, decode_offset);
}
void ScopeDesc::decode_body() {
if (decode_offset() == DebugInformationRecorder::serialized_null) {