< prev index next >

src/share/vm/oops/symbol.hpp

Print this page

        

*** 123,134 **** // max_symbol_length is constrained by type of _length max_symbol_length = (1 << 16) -1 }; static int size(int length) { ! size_t sz = heap_word_size(sizeof(Symbol) + (length > 2 ? length - 2 : 0)); ! return align_object_size(sz); } void byte_at_put(int index, int value) { assert(index >=0 && index < _length, "symbol index overflow"); _body[index] = value; --- 123,134 ---- // max_symbol_length is constrained by type of _length max_symbol_length = (1 << 16) -1 }; static int size(int length) { ! // minimum number of natural words needed to hold these bits (no non-heap version) ! return heap_word_size(sizeof(Symbol) + (length > 2 ? length - 2 : 0)); } void byte_at_put(int index, int value) { assert(index >=0 && index < _length, "symbol index overflow"); _body[index] = value;
< prev index next >