|
56 | 56 | #include "nmt/memTracker.hpp" |
57 | 57 | #include "oops/instanceKlass.hpp" |
58 | 58 | #include "oops/klass.inline.hpp" |
59 | | -#include "oops/method.inline.hpp" |
60 | 59 | #include "oops/oop.inline.hpp" |
61 | 60 | #include "oops/symbol.hpp" |
62 | 61 | #include "prims/jvm_misc.hpp" |
|
71 | 70 | #include "runtime/java.hpp" |
72 | 71 | #include "runtime/javaCalls.hpp" |
73 | 72 | #include "runtime/javaThread.inline.hpp" |
74 | | -#include "runtime/vframe.inline.hpp" |
75 | 73 | #include "runtime/jniHandles.inline.hpp" |
76 | 74 | #include "runtime/jniPeriodicChecker.hpp" |
77 | 75 | #include "runtime/lockStack.inline.hpp" |
@@ -1335,22 +1333,7 @@ void Threads::print_on(outputStream* st, bool print_stacks, |
1335 | 1333 | oop vt = p->vthread(); |
1336 | 1334 | assert(vt != nullptr, ""); |
1337 | 1335 | st->print_cr(" \tCarrying virtual thread #" INT64_FORMAT, (int64_t)java_lang_Thread::thread_id(vt)); |
1338 | | - // Very slightly modified copy of what GetStackTraceClosure does |
1339 | | - const int max_depth = MaxJavaStackTraceDepth; |
1340 | | - const bool skip_hidden = !ShowHiddenFrames; |
1341 | | - int total_count = 0; |
1342 | | - for (vframeStream vfst(p, false, false, false); // we don't process frames as we don't care about oops |
1343 | | - !vfst.at_end() && (max_depth == 0 || max_depth != total_count); |
1344 | | - vfst.next()) { |
1345 | | - |
1346 | | - if (skip_hidden && (vfst.method()->is_hidden() || |
1347 | | - vfst.method()->is_continuation_enter_intrinsic())) { |
1348 | | - continue; |
1349 | | - } |
1350 | | - st->print("\t"); // Indent |
1351 | | - java_lang_Throwable::print_stack_element(st, vfst.method(), vfst.bci()); |
1352 | | - total_count++; |
1353 | | - } |
| 1336 | + p->print_vthread_stack_on(st); |
1354 | 1337 | } |
1355 | 1338 | } |
1356 | 1339 | p->print_stack_on(st); |
|
0 commit comments