Get ClassLinker out of the business of allocating strings.
String is now the only place we allocate strings. This requires
a bit of finesse in order to make char[] available early during
bootstrap.
Change-Id: I494a2b0691b58fdafc96513c1e697a88d437c805
diff --git a/src/object.h b/src/object.h
index 0063f58..7eede5d 100644
--- a/src/object.h
+++ b/src/object.h
@@ -1065,6 +1065,11 @@
ascii_data_in);
}
+ static String* AllocFromModifiedUtf8(int32_t utf16_length,
+ const char* utf8_data_in) {
+ return AllocFromModifiedUtf8(java_lang_String_, char_array_, utf16_length, utf8_data_in);
+ }
+
public: // TODO: private
// Field order required by test "ValidateFieldOrderOfJavaCppUnionClasses".
CharArray* array_;