Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8263403: [JVMCI] output written to tty via HotSpotJVMCIRuntime can be…
… garbled

Reviewed-by: kvn, never
  • Loading branch information
Doug Simon committed Mar 11, 2021
1 parent b92abac commit f3bd801a8681db778122714e1df5ea12e7ef5824
Showing with 1 addition and 1 deletion.
  1. +1 −1 ...jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java
@@ -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);

0 comments on commit f3bd801

Please sign in to comment.