< prev index next >
src/share/vm/memory/oopFactory.cpp
Print this page
rev 8961 : [mq]: diff-shenandoah.patch
*** 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()->resolve_and_maybe_copy_oop(result));
if (length > 0) {
UTF8::convert_to_unicode(utf8_str, result->char_at_addr(0), length);
}
return result;
}
< prev index next >