This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why copy Utf8Consts?


Why does _Jv_NewStringUtf8Const() copy the UTF8 data when initializing a 
String from a Utf8Const? Isn't a Utf8Const essentially a java string 
without the object/vtable header? So why not just create a 0-length 
string object and point the data field at the static Utf8Const data?

regards

Bryce.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]