Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/graphKit.cpp @ 1965:f264f4c42799
7000491: assert(false) failed: should be optimized out in SharedRuntime::g1_wb_pre
Summary: Wrong value type is used for NULL store when clearing the detail message of the preallocated exception object.
Reviewed-by: never, iveresov
author | kvn |
---|---|
date | Thu, 18 Nov 2010 09:52:48 -0800 |
parents | f9883ee8ce39 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1964:22ef3370343b | 1965:f264f4c42799 |
---|---|
567 // using reflection. | 567 // using reflection. |
568 int offset = java_lang_Throwable::get_detailMessage_offset(); | 568 int offset = java_lang_Throwable::get_detailMessage_offset(); |
569 const TypePtr* adr_typ = ex_con->add_offset(offset); | 569 const TypePtr* adr_typ = ex_con->add_offset(offset); |
570 | 570 |
571 Node *adr = basic_plus_adr(ex_node, ex_node, offset); | 571 Node *adr = basic_plus_adr(ex_node, ex_node, offset); |
572 Node *store = store_oop_to_object(control(), ex_node, adr, adr_typ, null(), ex_con, T_OBJECT); | 572 const TypeOopPtr* val_type = TypeOopPtr::make_from_klass(env()->String_klass()); |
573 Node *store = store_oop_to_object(control(), ex_node, adr, adr_typ, null(), val_type, T_OBJECT); | |
573 | 574 |
574 add_exception_state(make_exception_state(ex_node)); | 575 add_exception_state(make_exception_state(ex_node)); |
575 return; | 576 return; |
576 } | 577 } |
577 } | 578 } |