Skip to content

Commit

Permalink
8316895: SeenThread::print_action_queue called on a null pointer
Browse files Browse the repository at this point in the history
Reviewed-by: coleenp, dholmes
  • Loading branch information
djelinski committed Sep 27, 2023
1 parent e39197e commit fd52be2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/hotspot/share/classfile/placeholders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ class SeenThread: public CHeapObj<mtInternal> {
void set_next(SeenThread* seen) { _stnext = seen; }
void set_prev(SeenThread* seen) { _stprev = seen; }

void print_action_queue(outputStream* st) {
SeenThread* seen = this;
static void print_action_queue(SeenThread* seen, outputStream* st) {
while (seen != nullptr) {
seen->thread()->print_value_on(st);
st->print(", ");
Expand Down Expand Up @@ -327,13 +326,13 @@ void PlaceholderEntry::print_on(outputStream* st) const {
}
st->cr();
st->print("loadInstanceThreadQ threads:");
loadInstanceThreadQ()->print_action_queue(st);
SeenThread::print_action_queue(loadInstanceThreadQ(), st);
st->cr();
st->print("superThreadQ threads:");
superThreadQ()->print_action_queue(st);
SeenThread::print_action_queue(superThreadQ(), st);
st->cr();
st->print("defineThreadQ threads:");
defineThreadQ()->print_action_queue(st);
SeenThread::print_action_queue(defineThreadQ(), st);
st->cr();
}

Expand Down

1 comment on commit fd52be2

@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.