Skip to content

Commit b56b49b

Browse files
Doug SimonJohnTortugo
authored andcommitted
8360049: CodeInvalidationReasonTest.java fails with ZGC on AArch64
Reviewed-by: aph, shade (cherry picked from commit ff54a6493a63cfbcaab7ec90c7db0135e98a7f0c)
1 parent f5a7ae0 commit b56b49b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.code.test/src/jdk/vm/ci/code/test/TestHotSpotVMConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ private Boolean initNmethodEntryBarrierConcurrentPatch(Architecture arch) {
6767
// There currently only 2 variants in use that differ only by the presence of a
6868
// dmb instruction
6969
int stw = getConstant("NMethodPatchingType::stw_instruction_and_data_patch", Integer.class);
70-
int conc = getConstant("NMethodPatchingType::conc_data_patch", Integer.class);
70+
int conc1 = getConstant("NMethodPatchingType::conc_data_patch", Integer.class);
71+
int conc2 = getConstant("NMethodPatchingType::conc_instruction_and_data_patch", Integer.class);
7172
if (patchingType == stw) {
7273
patchConcurrent = false;
73-
} else if (patchingType == conc) {
74+
} else if (patchingType == conc1 || patchingType == conc2) {
7475
patchConcurrent = true;
7576
} else {
7677
throw new IllegalArgumentException("unsupported barrier sequence " + patchingType);

0 commit comments

Comments
 (0)