< prev index next >

src/share/vm/memory/oopFactory.cpp

Print this page

        

*** 38,47 **** --- 38,48 ---- typeArrayOop oopFactory::new_charArray(const char* utf8_str, TRAPS) { int length = utf8_str == NULL ? 0 : UTF8::unicode_length(utf8_str); typeArrayOop result = new_charArray(length, CHECK_NULL); + result = typeArrayOop(oopDesc::bs()->write_barrier(result)); if (length > 0) { UTF8::convert_to_unicode(utf8_str, result->char_at_addr(0), length); } return result; }
< prev index next >