Skip to content

Commit 21db9a5

Browse files
author
Doug Simon
committed
8290065: [JVMCI] only check HotSpotCompiledCode stream is empty if installation succeeds
Reviewed-by: kvn
1 parent c79baaa commit 21db9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/jvmci/jvmciCodeInstaller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ JVMCI::CodeInstallResult CodeInstaller::install(JVMCICompiler* compiler,
692692
JVMCI::CodeInstallResult result = initialize_buffer(compiled_code, buffer, stream, code_flags, JVMCI_CHECK_OK);
693693

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

0 commit comments

Comments
 (0)