Skip to content

[GR-63723] Remove optimized hub access until compiler bug is fixed. #10952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
package com.oracle.svm.core.graal.meta;

import java.nio.ByteOrder;
import java.util.HashMap;
import java.util.Map;

Expand Down Expand Up @@ -260,12 +259,6 @@ protected ValueNode createReadHub(StructuredGraph graph, ValueNode object, Lower
int hubOffset = ol.getHubOffset();
int bytesToRead = ol.getHubSize();
long reservedHubBitsMask = oh.getReservedHubBitsMask();
if (hubOffset == Integer.BYTES && hubOffset + ol.getHubSize() == Long.BYTES && target.arch.getByteOrder() == ByteOrder.LITTLE_ENDIAN) {
/* Prepare to emit a 64-bit read at offset 0 (reduces the code size). */
hubOffset = 0;
bytesToRead = Long.BYTES;
reservedHubBitsMask = (reservedHubBitsMask << Integer.SIZE) | ((1L << Integer.SIZE) - 1);
}

/* Read the raw hub data from the correct part of the object header. */
IntegerStamp readStamp = StampFactory.forUnsignedInteger(bytesToRead * Byte.SIZE);
Expand Down
Loading