Skip to content


8290065: [JVMCI] only check HotSpotCompiledCode stream is empty if in…
Browse files Browse the repository at this point in the history
…stallation succeeds

Reviewed-by: kvn
  • Loading branch information
Doug Simon committed Jul 11, 2022
1 parent c79baaa commit 21db9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/jvmci/jvmciCodeInstaller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ JVMCI::CodeInstallResult CodeInstaller::install(JVMCICompiler* compiler,
JVMCI::CodeInstallResult result = initialize_buffer(compiled_code, buffer, stream, code_flags, JVMCI_CHECK_OK);

u4 available = stream->available();
if (available != 0) {
if (result == JVMCI::ok && available != 0) {
JVMCI_ERROR_OK("%d bytes remaining in stream%s", available, stream->context());

Expand Down

1 comment on commit 21db9a5

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.