Mercurial > hg > truffle
comparison src/share/vm/opto/memnode.cpp @ 2379:b099aaf51bf8
6962931: move interned strings out of the perm gen
Reviewed-by: never, coleenp, ysr, jwilhelm
author | jcoomes |
---|---|
date | Tue, 22 Mar 2011 13:36:33 -0700 |
parents | 41d4973cf100 |
children | f9424955eb18 e6beb62de02d |
comparison
equal
deleted
inserted
replaced
2378:924777755fad | 2379:b099aaf51bf8 |
---|---|
1571 ciConstant constant = string->as_instance()->field_value(field); | 1571 ciConstant constant = string->as_instance()->field_value(field); |
1572 if (constant.basic_type() == T_INT) { | 1572 if (constant.basic_type() == T_INT) { |
1573 return TypeInt::make(constant.as_int()); | 1573 return TypeInt::make(constant.as_int()); |
1574 } else if (constant.basic_type() == T_ARRAY) { | 1574 } else if (constant.basic_type() == T_ARRAY) { |
1575 if (adr->bottom_type()->is_ptr_to_narrowoop()) { | 1575 if (adr->bottom_type()->is_ptr_to_narrowoop()) { |
1576 return TypeNarrowOop::make_from_constant(constant.as_object()); | 1576 return TypeNarrowOop::make_from_constant(constant.as_object(), true); |
1577 } else { | 1577 } else { |
1578 return TypeOopPtr::make_from_constant(constant.as_object()); | 1578 return TypeOopPtr::make_from_constant(constant.as_object(), true); |
1579 } | 1579 } |
1580 } | 1580 } |
1581 } | 1581 } |
1582 } | 1582 } |
1583 } | 1583 } |