Mercurial > hg > truffle
comparison src/share/vm/opto/stringopts.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 | 2ddb2fab82cb |
children | 0e3ed5a14f73 |
comparison
equal
deleted
inserted
replaced
2378:924777755fad | 2379:b099aaf51bf8 |
---|---|
908 } else if (field->is_constant()) { | 908 } else if (field->is_constant()) { |
909 // This can happen if the constant oop is non-perm. | 909 // This can happen if the constant oop is non-perm. |
910 ciObject* con = field->constant_value().as_object(); | 910 ciObject* con = field->constant_value().as_object(); |
911 // Do not "join" in the previous type; it doesn't add value, | 911 // Do not "join" in the previous type; it doesn't add value, |
912 // and may yield a vacuous result if the field is of interface type. | 912 // and may yield a vacuous result if the field is of interface type. |
913 type = TypeOopPtr::make_from_constant(con)->isa_oopptr(); | 913 type = TypeOopPtr::make_from_constant(con, true)->isa_oopptr(); |
914 assert(type != NULL, "field singleton type must be consistent"); | 914 assert(type != NULL, "field singleton type must be consistent"); |
915 } else { | 915 } else { |
916 type = TypeOopPtr::make_from_klass(field_klass->as_klass()); | 916 type = TypeOopPtr::make_from_klass(field_klass->as_klass()); |
917 } | 917 } |
918 } else { | 918 } else { |