File tree 1 file changed +3
-15
lines changed
src/hotspot/share/utilities
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -501,22 +501,18 @@ extern "C" JNIEXPORT void ps() { // print stack
501
501
if (p->has_last_Java_frame ()) {
502
502
// If the last_Java_fp is set we are in C land and
503
503
// can call the standard stack_trace function.
504
- #ifdef PRODUCT
505
504
p->print_stack ();
506
- } else {
507
- tty->print_cr (" Cannot find the last Java frame, printing stack disabled." );
508
- #else // !PRODUCT
509
- p->trace_stack ();
505
+ #ifndef PRODUCT
506
+ if (Verbose) p->trace_stack ();
510
507
} else {
511
508
frame f = os::current_frame ();
512
509
RegisterMap reg_map (p);
513
510
f = f.sender (®_map);
514
511
tty->print (" (guessing starting frame id=" PTR_FORMAT " based on current fp)\n " , p2i (f.id ()));
515
512
p->trace_stack_from (vframe::new_vframe (&f, ®_map, p));
516
513
f.pd_ps ();
517
- #endif // PRODUCT
514
+ #endif
518
515
}
519
-
520
516
}
521
517
522
518
extern " C" JNIEXPORT void pfl () {
@@ -604,14 +600,6 @@ extern "C" JNIEXPORT nmethod* findnm(intptr_t addr) {
604
600
return CodeCache::find_nmethod ((address)addr);
605
601
}
606
602
607
- // Another interface that isn't ambiguous in dbx.
608
- // Can we someday rename the other find to hsfind?
609
- extern " C" JNIEXPORT void hsfind (intptr_t x) {
610
- Command c (" hsfind" );
611
- os::print_location (tty, x, false );
612
- }
613
-
614
-
615
603
extern " C" JNIEXPORT void find (intptr_t x) {
616
604
Command c (" find" );
617
605
os::print_location (tty, x, false );
You can’t perform that action at this time.
0 commit comments