8265699: (bf) Scopes passed to ScopedMemoryAccess.copy[Swap]Memory in incorrect order

Reviewed-by: mcimadamore
This commit is contained in:
Brian Burkhalter 2021-04-22 19:44:01 +00:00
parent b930bb1a2c
commit ca0de266b4
2 changed files with 7 additions and 6 deletions

View file

@ -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);