mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8326172: Dubious claim on long[]/double[] alignment in MemorySegment javadoc
Reviewed-by: mcimadamore
This commit is contained in:
parent
c653e67c0f
commit
2372aba6a2
10 changed files with 44 additions and 49 deletions
|
@ -47,9 +47,6 @@ import jdk.internal.foreign.layout.ValueLayouts;
|
|||
* For instance, the byte order of these constants is set to the
|
||||
* {@linkplain ByteOrder#nativeOrder() native byte order}, thus making it easy
|
||||
* to work with other APIs, such as arrays and {@link java.nio.ByteBuffer}.
|
||||
* Moreover, the alignment constraint of {@link ValueLayout#JAVA_LONG} and
|
||||
* {@link ValueLayout#JAVA_DOUBLE} is set to 8 bytes on 64-bit platforms,
|
||||
* but only to 4 bytes on 32-bit platforms.
|
||||
*
|
||||
* @implSpec implementing classes and subclasses are immutable, thread-safe and
|
||||
* <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue