mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8162458: Buffer view implementations use incorrect offset for Unsafe access
Reviewed-by: alanb
This commit is contained in:
parent
9be5fdfe94
commit
8dc58ab506
4 changed files with 781 additions and 35 deletions
|
@ -88,13 +88,13 @@ class XXX {
|
|||
0,
|
||||
size,
|
||||
size,
|
||||
off))
|
||||
address + off))
|
||||
: ($Type$Buffer)(new ByteBufferAs$Type$Buffer$RW$L(this,
|
||||
-1,
|
||||
0,
|
||||
size,
|
||||
size,
|
||||
off)));
|
||||
address + off)));
|
||||
} else {
|
||||
return (nativeByteOrder
|
||||
? ($Type$Buffer)(new Direct$Type$Buffer$RW$U(this,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue