Skip to content

Commit

Permalink
Post-merge cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
liach committed Sep 22, 2023
1 parent 1fff28b commit f291cab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ static AbstractMemorySegmentImpl checkAddress(Object obb, long offset, long leng
}

@ForceInline
static long offsetNoVMAlignCheck(AbstractMemorySegmentImpl bb, long offset, long alignmentMask) {
static long offsetPlain(AbstractMemorySegmentImpl bb, long offset, long alignmentMask) {
long base = bb.unsafeGetOffset();
long address = base + offset;
long maxAlignMask = bb.maxAlignMask();
if (((address | maxAlignMask) & alignmentMask) != 0) {
throw VarHandleSegmentViewBase.newIllegalArgumentExceptionForMisalignedAccess(address);
throw newIllegalArgumentExceptionForMisalignedAccess(address);
}
return address;
}
Expand Down

0 comments on commit f291cab

Please sign in to comment.