equal
deleted
inserted
replaced
232 |
232 |
233 void ciField::initialize_from(fieldDescriptor* fd) { |
233 void ciField::initialize_from(fieldDescriptor* fd) { |
234 // Get the flags, offset, and canonical holder of the field. |
234 // Get the flags, offset, and canonical holder of the field. |
235 _flags = ciFlags(fd->access_flags()); |
235 _flags = ciFlags(fd->access_flags()); |
236 _offset = fd->offset(); |
236 _offset = fd->offset(); |
237 _holder = CURRENT_ENV->get_instance_klass(fd->field_holder()); |
237 Klass* field_holder = fd->field_holder(); |
|
238 assert(field_holder != NULL, "null field_holder"); |
|
239 _holder = CURRENT_ENV->get_instance_klass(field_holder); |
238 |
240 |
239 // Check to see if the field is constant. |
241 // Check to see if the field is constant. |
240 Klass* k = _holder->get_Klass(); |
242 Klass* k = _holder->get_Klass(); |
241 bool is_stable_field = FoldStableValues && is_stable(); |
243 bool is_stable_field = FoldStableValues && is_stable(); |
242 if ((is_final() && !has_initialized_final_update()) || is_stable_field) { |
244 if ((is_final() && !has_initialized_final_update()) || is_stable_field) { |