src/hotspot/share/ci/ciField.cpp
changeset 48417 044979e94c4e
parent 47216 71c04702a3d5
child 49359 59f6547e151f
equal deleted inserted replaced
48416:08144d9cbdaa 48417:044979e94c4e
   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) {