Skip to content

Commit

Permalink
8329864: TestLibGraal.java still crashes with assert(_stack_base != n…
Browse files Browse the repository at this point in the history
…ullptr)

Reviewed-by: dnsimon, jsjolen, dcubed
  • Loading branch information
David Holmes committed Apr 15, 2024
1 parent bc1a1a5 commit d22d560
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hotspot/share/runtime/javaThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1580,9 +1580,11 @@ void JavaThread::print_on_error(outputStream* st, char *buf, int buflen) const {
if (osthread()) {
st->print(", id=%d", osthread()->thread_id());
}
// Use raw field members for stack base/size as this could be
// called before a thread has run enough to initialize them.
st->print(", stack(" PTR_FORMAT "," PTR_FORMAT ") (" PROPERFMT ")",
p2i(stack_end()), p2i(stack_base()),
PROPERFMTARGS(stack_size()));
p2i(_stack_base - _stack_size), p2i(_stack_base),
PROPERFMTARGS(_stack_size));
st->print("]");

ThreadsSMRSupport::print_info_on(this, st);
Expand Down

1 comment on commit d22d560

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.