Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/hotspot/cpu/ppc/frame_ppc.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2024 SAP SE. All rights reserved.
* Copyright (c) 2012, 2025 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -195,6 +195,15 @@ bool frame::safe_for_sender(JavaThread *thread) {
return false;
}

if (sender_pc() == nullptr) {
// Likely the return pc was not yet stored to stack. We rather discard this
// sample also because we would hit an assertion in frame::setup(). We can
// find any other random value if the return pc was not yet stored to
// stack. We rely on consistency checks to handle this (see
// e.g. find_initial_Java_frame())
return false;
}

return true;
}

Expand Down