Skip to content

Commit fac3e6d

Browse files
chumerwoess
authored andcommitted
Temporary disable frame read optimization (GR-64654).
1 parent 94cf07e commit fac3e6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/FrameHostReadsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void testStaticReads() throws IOException, InterruptedException {
109109
Assert.assertEquals(1, arrayLengthReads);
110110
Assert.assertEquals(0, otherReads);
111111
});
112-
}).disableAssertions(FrameWithoutBoxing.class).run();
112+
}).disableAssertions(FrameWithoutBoxing.class).postfixVmOption("-Djdk.graal.TruffleTrustedFinalFrameFields=true").run();
113113
}
114114

115115
public static int snippetReadsWritesWithoutZeroExtend(FrameWithoutBoxing frame, int index) {
@@ -138,7 +138,7 @@ public void testReadsWritesWithoutZeroExtend() throws IOException, InterruptedEx
138138
}
139139
Assert.assertEquals(2, writeCount);
140140
});
141-
}).disableAssertions(FrameWithoutBoxing.class).run();
141+
}).disableAssertions(FrameWithoutBoxing.class).postfixVmOption("-Djdk.graal.TruffleTrustedFinalFrameFields=true").run();
142142
}
143143

144144
private void compileAndCheck(String snippet, Consumer<StructuredGraph> check) {

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/substitutions/TruffleGraphBuilderPlugins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public static class Options {
151151
@Option(help = "Whether Truffle trusted type casts are enabled.", type = OptionType.Debug) //
152152
public static final OptionKey<Boolean> TruffleTrustedTypeCast = new OptionKey<>(true);
153153
@Option(help = "Whether Truffle frame field reads are trusted final.", type = OptionType.Debug) //
154-
public static final OptionKey<Boolean> TruffleTrustedFinalFrameFields = new OptionKey<>(true);
154+
public static final OptionKey<Boolean> TruffleTrustedFinalFrameFields = new OptionKey<>(false);
155155

156156
}
157157

0 commit comments

Comments
 (0)