Skip to content

Commit 59d2309

Browse files
committed
8371385: compiler/escapeAnalysis/TestRematerializeObjects.java fails in case of -XX:-UseUnalignedAccesses
Reviewed-by: chagedorn, dfenacci
1 parent 428b553 commit 59d2309

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/hotspot/jtreg/compiler/escapeAnalysis/TestRematerializeObjects.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public void runTest1() {
7979
IRNode.UNSTABLE_IF_TRAP, "1",
8080
IRNode.STORE_L_OF_CLASS, "int\\[int:4\\]", "1",
8181
IRNode.SAFEPOINT_SCALAROBJECT_OF, "fields@\\[0..3\\]", "0"},
82-
applyIf = {"EliminateAllocations", "false"})
82+
applyIfAnd = {"EliminateAllocations", "false", "UseUnalignedAccesses", "true"})
8383
@IR(counts = {IRNode.ALLOC_ARRAY, "0",
8484
IRNode.UNSTABLE_IF_TRAP, "1",
8585
IRNode.STORE_L_OF_CLASS, "int\\[int:4\\]", "0",
8686
IRNode.SAFEPOINT_SCALAROBJECT_OF, "fields@\\[0..3\\]", "2"},
87-
applyIf = {"EliminateAllocations", "true"})
87+
applyIfAnd = {"EliminateAllocations", "true", "UseUnalignedAccesses", "true"})
8888
static int test1(boolean flag) {
8989
int[] arr = new int[4];
9090
arr[0] = 0x0001_0000; // these slip into Initialize
@@ -124,12 +124,12 @@ public void runTest2() {
124124
IRNode.UNSTABLE_IF_TRAP, "1",
125125
IRNode.STORE_I_OF_CLASS, "short\\[int:4\\]", "1",
126126
IRNode.SAFEPOINT_SCALAROBJECT_OF, "fields@\\[0..3\\]", "0"},
127-
applyIf = {"EliminateAllocations", "false"})
127+
applyIfAnd = {"EliminateAllocations", "false", "UseUnalignedAccesses", "true"})
128128
@IR(counts = {IRNode.ALLOC_ARRAY, "0",
129129
IRNode.UNSTABLE_IF_TRAP, "1",
130130
IRNode.STORE_I_OF_CLASS, "short\\[int:4\\]", "0",
131131
IRNode.SAFEPOINT_SCALAROBJECT_OF, "fields@\\[0..3\\]", "2"},
132-
applyIf = {"EliminateAllocations", "true"})
132+
applyIfAnd = {"EliminateAllocations", "true", "UseUnalignedAccesses", "true"})
133133
static int test2(boolean flag) {
134134
short[] arr = new short[4];
135135
arr[0] = 1;

0 commit comments

Comments
 (0)