385 if (WizardMode) {
386 tty->print_cr("Error in fill_from_frame: pc_desc for "
387 INTPTR_FORMAT " not found or invalid at %d",
388 _frame.pc(), decode_offset);
389 nm()->print();
390 nm()->method()->print_codes();
391 nm()->print_code();
392 nm()->print_pcs();
393 }
394 #endif
395 // Provide a cheap fallback in product mode. (See comment above.)
396 found_bad_method_frame();
397 fill_from_compiled_native_frame();
398 return;
399 }
400
401 // Decode first part of scopeDesc
402 DebugInfoReadStream buffer(nm(), decode_offset);
403 _sender_decode_offset = buffer.read_int();
404 _method = methodOop(buffer.read_oop());
405 _bci = buffer.read_bci();
406
407 assert(_method->is_method(), "checking type of decoded method");
408 }
409
410 // The native frames are handled specially. We do not rely on ScopeDesc info
411 // since the pc might not be exact due to the _last_native_pc trick.
412 inline void vframeStreamCommon::fill_from_compiled_native_frame() {
413 _mode = compiled_mode;
414 _sender_decode_offset = DebugInformationRecorder::serialized_null;
415 _method = nm()->method();
416 _bci = 0;
417 }
418
419 inline bool vframeStreamCommon::fill_from_frame() {
420 // Interpreted frame
421 if (_frame.is_interpreted_frame()) {
422 fill_from_interpreter_frame();
423 return true;
424 }
425
|
385 if (WizardMode) {
386 tty->print_cr("Error in fill_from_frame: pc_desc for "
387 INTPTR_FORMAT " not found or invalid at %d",
388 _frame.pc(), decode_offset);
389 nm()->print();
390 nm()->method()->print_codes();
391 nm()->print_code();
392 nm()->print_pcs();
393 }
394 #endif
395 // Provide a cheap fallback in product mode. (See comment above.)
396 found_bad_method_frame();
397 fill_from_compiled_native_frame();
398 return;
399 }
400
401 // Decode first part of scopeDesc
402 DebugInfoReadStream buffer(nm(), decode_offset);
403 _sender_decode_offset = buffer.read_int();
404 _method = methodOop(buffer.read_oop());
405 bool dummy_restart = false; //useless information
406 _bci = buffer.read_bci_and_restart(dummy_restart);
407
408 assert(_method->is_method(), "checking type of decoded method");
409 }
410
411 // The native frames are handled specially. We do not rely on ScopeDesc info
412 // since the pc might not be exact due to the _last_native_pc trick.
413 inline void vframeStreamCommon::fill_from_compiled_native_frame() {
414 _mode = compiled_mode;
415 _sender_decode_offset = DebugInformationRecorder::serialized_null;
416 _method = nm()->method();
417 _bci = 0;
418 }
419
420 inline bool vframeStreamCommon::fill_from_frame() {
421 // Interpreted frame
422 if (_frame.is_interpreted_frame()) {
423 fill_from_interpreter_frame();
424 return true;
425 }
426
|