mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6969586: OptimizeStringConcat: SIGSEGV in LoadNode::Value()
Reviewed-by: kvn
This commit is contained in:
parent
3f7bac73fe
commit
84aedee955
1 changed files with 2 additions and 2 deletions
|
@ -1547,8 +1547,8 @@ const Type *LoadNode::Value( PhaseTransform *phase ) const {
|
|||
adr->is_AddP() && off != Type::OffsetBot) {
|
||||
// For constant Strings treat the fields as compile time constants.
|
||||
Node* base = adr->in(AddPNode::Base);
|
||||
if (base->Opcode() == Op_ConP) {
|
||||
const TypeOopPtr* t = phase->type(base)->isa_oopptr();
|
||||
const TypeOopPtr* t = phase->type(base)->isa_oopptr();
|
||||
if (t != NULL && t->singleton()) {
|
||||
ciObject* string = t->const_oop();
|
||||
ciConstant constant = string->as_instance()->field_value_by_offset(off);
|
||||
if (constant.basic_type() == T_INT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue