From 355f44dd11620b6a6070be13648cdcb35dcd5105 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Tue, 20 Oct 2020 05:31:39 +0000 Subject: [PATCH] 8254994: [x86] C1 StubAssembler::call_RT, "call_offset might not be initialized" Reviewed-by: chagedorn, kvn --- src/hotspot/cpu/x86/c1_Runtime1_x86.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hotspot/cpu/x86/c1_Runtime1_x86.cpp b/src/hotspot/cpu/x86/c1_Runtime1_x86.cpp index 53935539a36..60347c41163 100644 --- a/src/hotspot/cpu/x86/c1_Runtime1_x86.cpp +++ b/src/hotspot/cpu/x86/c1_Runtime1_x86.cpp @@ -69,7 +69,7 @@ int StubAssembler::call_RT(Register oop_result1, Register metadata_result, addre push(thread); #endif // _LP64 - int call_offset; + int call_offset = -1; if (!align_stack) { set_last_Java_frame(thread, noreg, rbp, NULL); } else { @@ -133,6 +133,8 @@ int StubAssembler::call_RT(Register oop_result1, Register metadata_result, addre if (metadata_result->is_valid()) { get_vm_result_2(metadata_result, thread); } + + assert(call_offset >= 0, "Should be set"); return call_offset; }