Skip to content

Commit

Permalink
remove unnecessary linuxOs in RISCV64HotSpotVMConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
feilongjiang committed Oct 12, 2023
1 parent 9355431 commit 9f13696
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected HotSpotConstantReflectionProvider createConstantReflection(HotSpotJVMC
}

private static RegisterConfig createRegisterConfig(RISCV64HotSpotVMConfig config, TargetDescription target) {
return new RISCV64HotSpotRegisterConfig(target, config.useCompressedOops, config.linuxOs);
return new RISCV64HotSpotRegisterConfig(target, config.useCompressedOops, target.linuxOs);
}

protected HotSpotCodeCacheProvider createCodeCache(HotSpotJVMCIRuntime runtime, TargetDescription target, RegisterConfig regConfig) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import jdk.vm.ci.hotspot.HotSpotVMConfigAccess;
import jdk.vm.ci.hotspot.HotSpotVMConfigStore;
import jdk.vm.ci.services.Services;
import jdk.internal.util.OperatingSystem;

/**
Expand All @@ -38,8 +37,6 @@ class RISCV64HotSpotVMConfig extends HotSpotVMConfigAccess {
super(config);
}

final boolean linuxOs = OperatingSystem.isLinux();

final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);

// CPU Capabilities
Expand Down

0 comments on commit 9f13696

Please sign in to comment.