# HG changeset patch # User ghaug # Date 1534512138 -7200 # Fri Aug 17 15:22:18 2018 +0200 # Node ID 64ac19de8a3b20827abaaa75503cbd0887c3d410 # Parent e2ced90cbd369451a32404a7e8867b321975dbda 8208480: Test failure: assert(is_bound() || is_unused()) after JDK-8206075 in C1 diff --git a/src/hotspot/share/c1/c1_LIRAssembler.cpp b/src/hotspot/share/c1/c1_LIRAssembler.cpp --- a/src/hotspot/share/c1/c1_LIRAssembler.cpp +++ b/src/hotspot/share/c1/c1_LIRAssembler.cpp @@ -112,6 +112,9 @@ LIR_Assembler::~LIR_Assembler() { + // The unwind handler label may be unnbound if this destructor is invoked because of a bail-out. + // Reset it here to avoid an assertion. + _unwind_handler_entry.reset(); }