-
Bug
-
Resolution: Fixed
-
P3
-
21
-
None
-
b24
-
b27
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8309864 | 22 | Maurizio Cimadamore | P3 | Resolved | Fixed | b02 |
ValueLayout ::arrayElementVarHandle
Throws: UnsupportedOperationException - if byteAlignment() > byteSize().
jshell> ValueLayout.JAVA_LONG_UNALIGNED.withByteAlignment(64)
$29 ==> 64%j8
But
jshell> ValueLayout.JAVA_LONG_UNALIGNED.withByteAlignment(64).arrayElementVarHandle()
| Exception java.lang.IllegalArgumentException: Element layout size is not multiple of alignment
| at Utils.checkElementAlignment (Utils.java:181)
| at MemoryLayout.sequenceLayout (MemoryLayout.java:626)
| at MemoryLayout.sequenceLayout (MemoryLayout.java:646)
| at ValueLayouts$AbstractValueLayout.arrayElementVarHandle (ValueLayouts.java:128)
| at (#30:1)
Throws: UnsupportedOperationException - if byteAlignment() > byteSize().
jshell> ValueLayout.JAVA_LONG_UNALIGNED.withByteAlignment(64)
$29 ==> 64%j8
But
jshell> ValueLayout.JAVA_LONG_UNALIGNED.withByteAlignment(64).arrayElementVarHandle()
| Exception java.lang.IllegalArgumentException: Element layout size is not multiple of alignment
| at Utils.checkElementAlignment (Utils.java:181)
| at MemoryLayout.sequenceLayout (MemoryLayout.java:626)
| at MemoryLayout.sequenceLayout (MemoryLayout.java:646)
| at ValueLayouts$AbstractValueLayout.arrayElementVarHandle (ValueLayouts.java:128)
| at (#30:1)
- backported by
-
JDK-8309864 ValueLayout:: arrayElementVarHandle doesn't throws UnsupportedOperationException - if byteAlignment() > byteSize()
-
- Resolved
-