Skip to content

Commit fe7a461

Browse files
committed
8294920: Missing SP value in Linux x86_32 thread context
Reviewed-by: cjplummer, sspitsyn
1 parent 4cbac40 commit fe7a461

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/linux_x86/LinuxX86JavaThreadPDAccess.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -116,7 +116,7 @@ public void printInfoOn(Address threadAddr, PrintStream tty) {
116116
public Address getLastSP(Address addr) {
117117
ThreadProxy t = getThreadProxy(addr);
118118
X86ThreadContext context = (X86ThreadContext) t.getContext();
119-
return context.getRegisterAsAddress(X86ThreadContext.ESP);
119+
return context.getRegisterAsAddress(X86ThreadContext.SP);
120120
}
121121

122122
public ThreadProxy getThreadProxy(Address addr) {

0 commit comments

Comments
 (0)