< prev index next >

src/hotspot/share/opto/compile.cpp

Print this page

        

*** 1552,1562 **** // Canonicalize the holder of this field if (offset >= 0 && offset < instanceOopDesc::base_offset_in_bytes()) { // First handle header references such as a LoadKlassNode, even if the // object's klass is unloaded at compile time (4965979). if (!is_known_inst) { // Do it only for non-instance types ! tj = tv = TypeValueTypePtr::make(TypePtr::BotPTR, env()->___Value_klass()->as_value_klass(), NULL, Type::Offset(offset)); } } else if (offset < 0 || offset >= vk->size_helper() * wordSize) { // Static fields are in the space above the normal instance // fields in the java.lang.Class instance. tv = NULL; --- 1552,1563 ---- // Canonicalize the holder of this field if (offset >= 0 && offset < instanceOopDesc::base_offset_in_bytes()) { // First handle header references such as a LoadKlassNode, even if the // object's klass is unloaded at compile time (4965979). if (!is_known_inst) { // Do it only for non-instance types ! // tj = tv = TypeValueTypePtr::make(TypePtr::BotPTR, env()->___Value_klass()->as_value_klass(), NULL, Type::Offset(offset)); ! tj = tv = NULL; } } else if (offset < 0 || offset >= vk->size_helper() * wordSize) { // Static fields are in the space above the normal instance // fields in the java.lang.Class instance. tv = NULL;
< prev index next >