8208480: Test failure: assert(is_bound() || is_unused()) after JDK-8206075 in C1
Reviewed-by: kvn, phh, lucy
This commit is contained in:
parent
1ab91ea928
commit
e2081b42b5
@ -112,6 +112,9 @@ LIR_Assembler::LIR_Assembler(Compilation* c):
|
||||
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -71,11 +71,7 @@ class LIR_Assembler: public CompilationResourceObj {
|
||||
void record_non_safepoint_debug_info();
|
||||
|
||||
// unified bailout support
|
||||
void bailout(const char* msg) {
|
||||
// reset the label in case it hits assertion in destructor.
|
||||
_unwind_handler_entry.reset();
|
||||
compilation()->bailout(msg);
|
||||
}
|
||||
void bailout(const char* msg) const { compilation()->bailout(msg); }
|
||||
bool bailed_out() const { return compilation()->bailed_out(); }
|
||||
|
||||
// code emission patterns and accessors
|
||||
|
Loading…
Reference in New Issue
Block a user