Skip to content

Commit d8b596e

Browse files
authored
Merge pull request #12 from jerboaa/aarch64_conc_patch_fix_25.0.3_ea
[AAarch64] Adapt to JDK-8364936 new in 25.0.3+1
2 parents 6cd0197 + 5b6ee29 commit d8b596e

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/GraalHotSpotVMConfig.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,14 +630,12 @@ private long getZGCAddressField(String name) {
630630
osArch.equals("aarch64") && zgcSupport);
631631
public final int NMethodPatchingType_stw_instruction_and_data_patch = getConstant("NMethodPatchingType::stw_instruction_and_data_patch", Integer.class, -1, osArch.equals("aarch64"));
632632
public final int NMethodPatchingType_conc_instruction_and_data_patch = getConstant("NMethodPatchingType::conc_instruction_and_data_patch", Integer.class, -1, osArch.equals("aarch64"));
633-
public final int NMethodPatchingType_conc_data_patch = getConstant("NMethodPatchingType::conc_data_patch", Integer.class, -1, osArch.equals("aarch64"));
634633
// @formatter:on
635634

636635
{
637636
if (osArch.equals("aarch64")) {
638637
if (BarrierSetAssembler_nmethod_patching_type != NMethodPatchingType_stw_instruction_and_data_patch &&
639-
BarrierSetAssembler_nmethod_patching_type != NMethodPatchingType_conc_instruction_and_data_patch &&
640-
BarrierSetAssembler_nmethod_patching_type != NMethodPatchingType_conc_data_patch) {
638+
BarrierSetAssembler_nmethod_patching_type != NMethodPatchingType_conc_instruction_and_data_patch) {
641639
throw new IllegalArgumentException("unsupported barrier sequence " + BarrierSetAssembler_nmethod_patching_type);
642640
}
643641
}

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/aarch64/AArch64HotSpotBackend.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,6 @@ private void emitNmethodEntryBarrier(CompilationResultBuilder crb, AArch64MacroA
338338

339339
} else {
340340

341-
if (config.BarrierSetAssembler_nmethod_patching_type == config.NMethodPatchingType_conc_data_patch) {
342-
masm.dmb(AArch64Assembler.BarrierKind.LOAD_ANY);
343-
}
344-
345341
AArch64Address threadDisarmedAddr = masm.makeAddress(32, thread, config.threadDisarmedOffset, scratch2);
346342
masm.ldr(32, scratch2, threadDisarmedAddr);
347343
masm.cmp(32, scratch1, scratch2);

0 commit comments

Comments
 (0)