File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2000, 2023 , Oracle and/or its affiliates. All rights reserved.
3
- * Copyright (c) 2012, 2023 SAP SE. All rights reserved.
2
+ * Copyright (c) 2000, 2025 , Oracle and/or its affiliates. All rights reserved.
3
+ * Copyright (c) 2012, 2025 SAP SE. All rights reserved.
4
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
*
6
6
* This code is free software; you can redistribute it and/or modify it
@@ -191,6 +191,15 @@ bool frame::safe_for_sender(JavaThread *thread) {
191
191
return false ;
192
192
}
193
193
194
+ if (sender_pc () == nullptr ) {
195
+ // Likely the return pc was not yet stored to stack. We rather discard this
196
+ // sample also because we would hit an assertion in frame::setup(). We can
197
+ // find any other random value if the return pc was not yet stored to
198
+ // stack. We rely on consistency checks to handle this (see
199
+ // e.g. find_initial_Java_frame())
200
+ return false ;
201
+ }
202
+
194
203
return true ;
195
204
}
196
205
You can’t perform that action at this time.
0 commit comments