Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
[GR-29966] Use correct ARRAY_BYTE_BASE_OFFSET value.
Browse files Browse the repository at this point in the history
PullRequest: labsjdk-ce-11/173
  • Loading branch information
dougxc committed Mar 11, 2021
2 parents 5bb5794 + a95b290 commit 2493800
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ static int writeDebugOutput0(CompilerToVM vm, byte[] bytes, int offset, int leng
Unsafe unsafe = UnsafeAccess.UNSAFE;
long buffer = unsafe.allocateMemory(length);
try {
unsafe.copyMemory(bytes, vm.ARRAY_BYTE_BASE_OFFSET, null, buffer, length);
unsafe.copyMemory(bytes, Unsafe.ARRAY_BYTE_BASE_OFFSET, null, buffer, length);
vm.writeDebugOutput(buffer, length, flush);
} finally {
unsafe.freeMemory(buffer);
Expand Down

0 comments on commit 2493800

Please sign in to comment.