comparison src/share/vm/classfile/classFileParser.cpp @ 1847:a932f331ef90

6991065: missed a review comment in 6829194 Reviewed-by: kvn
author twisti
date Tue, 12 Oct 2010 02:21:06 -0700
parents d55217dc206f
children 6412b3805cd6 d2e35ffae982
comparison
equal deleted inserted replaced
1846:d55217dc206f 1847:a932f331ef90
2702 // Adjust the field type from byte to an unmanaged pointer. 2702 // Adjust the field type from byte to an unmanaged pointer.
2703 assert(fac_ptr->nonstatic_byte_count > 0, ""); 2703 assert(fac_ptr->nonstatic_byte_count > 0, "");
2704 fac_ptr->nonstatic_byte_count -= 1; 2704 fac_ptr->nonstatic_byte_count -= 1;
2705 2705
2706 (*fields_ptr)->ushort_at_put(i + instanceKlass::signature_index_offset, word_sig_index); 2706 (*fields_ptr)->ushort_at_put(i + instanceKlass::signature_index_offset, word_sig_index);
2707 if (UseCompressedOops) fac_ptr->nonstatic_double_count += 1; 2707 assert(wordSize == longSize || wordSize == jintSize, "ILP32 or LP64");
2708 else fac_ptr->nonstatic_word_count += 1; 2708 if (wordSize == longSize) fac_ptr->nonstatic_double_count += 1;
2709 else fac_ptr->nonstatic_word_count += 1;
2709 2710
2710 FieldAllocationType atype = (FieldAllocationType) (*fields_ptr)->ushort_at(i + instanceKlass::low_offset); 2711 FieldAllocationType atype = (FieldAllocationType) (*fields_ptr)->ushort_at(i + instanceKlass::low_offset);
2711 assert(atype == NONSTATIC_BYTE, ""); 2712 assert(atype == NONSTATIC_BYTE, "");
2712 FieldAllocationType new_atype = (wordSize == longSize) ? NONSTATIC_DOUBLE : NONSTATIC_WORD; 2713 FieldAllocationType new_atype = (wordSize == longSize) ? NONSTATIC_DOUBLE : NONSTATIC_WORD;
2713 assert(wordSize == longSize || wordSize == jintSize, "ILP32 or LP64");
2714 (*fields_ptr)->ushort_at_put(i + instanceKlass::low_offset, new_atype); 2714 (*fields_ptr)->ushort_at_put(i + instanceKlass::low_offset, new_atype);
2715 2715
2716 found_vmentry = true; 2716 found_vmentry = true;
2717 break; 2717 break;
2718 } 2718 }