< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java

Print this page

        

@@ -1790,23 +1790,23 @@
                         .generateInvokersHolderClassBytes(className,
                                 invokerMethodTypes, callSiteMethodTypes);
             }
 
             @Override
-            public VarHandle memoryAddressViewVarHandle(Class<?> carrier, long alignment,
+            public VarHandle memoryAddressViewVarHandle(Class<?> carrier, long alignmentMask,
                                                         ByteOrder order, long offset, long[] strides) {
-                return VarHandles.makeMemoryAddressViewHandle(carrier, alignment, order, offset, strides);
+                return VarHandles.makeMemoryAddressViewHandle(carrier, alignmentMask, order, offset, strides);
             }
 
             @Override
             public Class<?> memoryAddressCarrier(VarHandle handle) {
                 return checkMemAccessHandle(handle).carrier();
             }
 
             @Override
-            public long memoryAddressAlignment(VarHandle handle) {
-                return checkMemAccessHandle(handle).alignment + 1;
+            public long memoryAddressAlignmentMask(VarHandle handle) {
+                return checkMemAccessHandle(handle).alignmentMask;
             }
 
             @Override
             public ByteOrder memoryAddressByteOrder(VarHandle handle) {
                 return checkMemAccessHandle(handle).be ?
< prev index next >