mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7000491: assert(false) failed: should be optimized out in SharedRuntime::g1_wb_pre
Wrong value type is used for NULL store when clearing the detail message of the preallocated exception object. Reviewed-by: never, iveresov
This commit is contained in:
parent
5c238caed1
commit
606ee163ca
1 changed files with 2 additions and 1 deletions
|
@ -569,7 +569,8 @@ void GraphKit::builtin_throw(Deoptimization::DeoptReason reason, Node* arg) {
|
||||||
const TypePtr* adr_typ = ex_con->add_offset(offset);
|
const TypePtr* adr_typ = ex_con->add_offset(offset);
|
||||||
|
|
||||||
Node *adr = basic_plus_adr(ex_node, ex_node, offset);
|
Node *adr = basic_plus_adr(ex_node, ex_node, offset);
|
||||||
Node *store = store_oop_to_object(control(), ex_node, adr, adr_typ, null(), ex_con, T_OBJECT);
|
const TypeOopPtr* val_type = TypeOopPtr::make_from_klass(env()->String_klass());
|
||||||
|
Node *store = store_oop_to_object(control(), ex_node, adr, adr_typ, null(), val_type, T_OBJECT);
|
||||||
|
|
||||||
add_exception_state(make_exception_state(ex_node));
|
add_exception_state(make_exception_state(ex_node));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue