Skip to content

Commit b50eec6

Browse files
committed
[GR-30949] Fix typo in arch string.
PullRequest: graal/8816
2 parents 264ba5b + 8209bc9 commit b50eec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/memory/ByteArraySupports.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private ByteArraySupports() {
8080
static {
8181
// We only use Unsafe for platforms that we know support it, and that support unaligned
8282
// accesses.
83-
if (System.getProperty("os.arch").equals("x86-64") || System.getProperty("os.arch").equals("aarch64") || System.getProperty("os.arch").equals("amd64")) {
83+
if (System.getProperty("os.arch").equals("x86_64") || System.getProperty("os.arch").equals("aarch64") || System.getProperty("os.arch").equals("amd64")) {
8484
final ByteArraySupport nativeOrder = new CheckedByteArraySupport(new UnsafeByteArraySupport());
8585
if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN) {
8686
BIG_ENDIAN = nativeOrder;

0 commit comments

Comments
 (0)