how is anyone supposed to find all these spots?
[cacao.git] / native.c
index c5c2561611ccb5351e8908b94dc628b13ba0270a..93c2a260fe51b295fafb40e868619e373e08ffc6 100644 (file)
--- a/native.c
+++ b/native.c
@@ -31,7 +31,7 @@
    The .hh files created with the header file generator are all
    included here as are the C functions implementing these methods.
 
-   $Id: native.c 1361 2004-07-28 10:51:14Z twisti $
+   $Id: native.c 1383 2004-08-02 07:27:00Z stefan $
 
 */
 
@@ -926,6 +926,9 @@ java_objectheader *literalstring_u2(java_chararray *a, u4 length, u4 offset,
 
     /* create new javastring */
     js = LNEW(java_lang_String);
+#if defined(USE_THREADS) && defined(NATIVE_THREADS)
+       initObjectLock(&js->header);
+#endif
        js->header.vftbl = class_java_lang_String->vftbl;
     js->value  = stringdata;
     js->offset = 0;