mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8265699: (bf) Scopes passed to ScopedMemoryAccess.copy[Swap]Memory in incorrect order
Reviewed-by: mcimadamore
This commit is contained in:
parent
b930bb1a2c
commit
ca0de266b4
2 changed files with 7 additions and 6 deletions
|
@ -1058,7 +1058,7 @@ public abstract class $Type$Buffer
|
|||
#end[!byte]
|
||||
try {
|
||||
SCOPED_MEMORY_ACCESS.copyMemory(
|
||||
scope(), src.scope(), srcBase,
|
||||
src.scope(), scope(), srcBase,
|
||||
srcAddr, base, addr, len);
|
||||
} finally {
|
||||
Reference.reachabilityFence(src);
|
||||
|
@ -1068,7 +1068,7 @@ public abstract class $Type$Buffer
|
|||
} else {
|
||||
try {
|
||||
SCOPED_MEMORY_ACCESS.copySwapMemory(
|
||||
scope(), src.scope(), srcBase,
|
||||
src.scope(), scope(), srcBase,
|
||||
srcAddr, base, addr, len, (long)1 << $LG_BYTES_PER_VALUE$);
|
||||
} finally {
|
||||
Reference.reachabilityFence(src);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue