Commit 8f1c134 1 parent 1232677 commit 8f1c134 Copy full SHA for 8f1c134
File tree 2 files changed +11
-2
lines changed
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2000, 2017 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2000, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
27
27
import java .io .*;
28
28
import sun .jvm .hotspot .code .*;
29
29
import sun .jvm .hotspot .utilities .*;
30
+ import sun .jvm .hotspot .debugger .Address ;
30
31
31
32
public class VFrame {
32
33
protected Frame fr ;
@@ -145,7 +146,16 @@ public JavaVFrame javaSender() {
145
146
if (f .isJavaFrame ()) {
146
147
return (JavaVFrame ) f ;
147
148
}
149
+ Address oldSP = f .getFrame ().getSP ();
148
150
f = f .sender (imprecise );
151
+ if (f != null ) {
152
+ // Make sure the sender frame is above the current frame, not below
153
+ Address newSP = f .getFrame ().getSP ();
154
+ if (oldSP .greaterThanOrEqual (newSP )) {
155
+ String errString = "newSP(" + newSP + ") is not above oldSP(" + oldSP + ")" ;
156
+ throw new RuntimeException (errString );
157
+ }
158
+ }
149
159
}
150
160
return null ;
151
161
}
Original file line number Diff line number Diff line change @@ -734,7 +734,6 @@ sun/tools/jstat/jstatLineCounts3.sh 8268211 linux-aa
734
734
sun/tools/jstat/jstatLineCounts4.sh 8268211 linux-aarch64
735
735
736
736
sun/tools/jhsdb/JStackStressTest.java 8276210 linux-aarch64
737
- sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java 8313798 generic-aarch64
738
737
739
738
############################################################################
740
739
You can’t perform that action at this time.
0 commit comments