Skip to content

Commit

Permalink
[GR-51542] Fix rbp handling when configuring registers on Windows.
Browse files Browse the repository at this point in the history
PullRequest: graal/16721
  • Loading branch information
pejovica committed Jan 25, 2024
2 parents 778e850 + 886f5ef commit 44a1d4b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
import java.util.HashSet;
import java.util.Set;

import jdk.graal.compiler.core.common.LIRKind;
import org.graalvm.nativeimage.Platform;

import com.oracle.svm.core.ReservedRegisters;
Expand All @@ -83,6 +82,7 @@
import com.oracle.svm.core.graal.meta.SubstrateRegisterConfig;
import com.oracle.svm.core.util.VMError;

import jdk.graal.compiler.core.common.LIRKind;
import jdk.vm.ci.amd64.AMD64;
import jdk.vm.ci.amd64.AMD64Kind;
import jdk.vm.ci.code.CallingConvention;
Expand Down Expand Up @@ -154,7 +154,9 @@ public SubstrateAMD64RegisterConfig(ConfigKind config, MetaAccessProvider metaAc
nativeParamsStackOffset = 4 * target.wordSize;

regs.remove(ReservedRegisters.singleton().getFrameRegister());
regs.remove(rbp);
if (useBasePointer) {
regs.remove(rbp);
}
regs.remove(ReservedRegisters.singleton().getHeapBaseRegister());
regs.remove(ReservedRegisters.singleton().getThreadRegister());
allocatableRegs = new RegisterArray(regs);
Expand Down

0 comments on commit 44a1d4b

Please sign in to comment.