Skip to content
This repository has been archived by the owner on Aug 16, 2023. 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: graal-jvmci-8/380
  • Loading branch information
dougxc committed Mar 11, 2021
2 parents 7025452 + 51793ee commit fad9df2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,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 fad9df2

Please sign in to comment.