Skip to content

Commit

Permalink
8294920: Missing SP value in Linux x86_32 thread context
Browse files Browse the repository at this point in the history
Reviewed-by: cjplummer, sspitsyn
  • Loading branch information
shipilev committed Oct 7, 2022
1 parent 4cbac40 commit fe7a461
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. 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 @@ -116,7 +116,7 @@ public void printInfoOn(Address threadAddr, PrintStream tty) {
public Address getLastSP(Address addr) {
ThreadProxy t = getThreadProxy(addr);
X86ThreadContext context = (X86ThreadContext) t.getContext();
return context.getRegisterAsAddress(X86ThreadContext.ESP);
return context.getRegisterAsAddress(X86ThreadContext.SP);
}

public ThreadProxy getThreadProxy(Address addr) {
Expand Down

1 comment on commit fe7a461

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