how is anyone supposed to find all these spots?
[cacao.git] / src / native / native.c
index 1a5badf57c6e9e246e66fc316b988710cf565bf9..93c2a260fe51b295fafb40e868619e373e08ffc6 100644 (file)
@@ -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 1331 2004-07-21 15:46:54Z twisti $
+   $Id: native.c 1383 2004-08-02 07:27:00Z stefan $
 
 */
 
@@ -82,9 +82,6 @@
 #include "nativetable.inc"
 
 
-/* searchpath for classfiles */
-char *classpath;
-
 /* for java-string to char conversion */
 #define MAXSTRINGSIZE 1000                          
 
@@ -258,15 +255,6 @@ void init_systemclassloader()
 }
 
 
-/********************* function: native_setclasspath **************************/
-void native_setclasspath(char *path)
-{
-       /* set searchpath for classfiles */
-       classpath = path;
-}
-
-
 /*********************** Function: native_findfunction *************************
 
        Looks up a method (must have the same class name, method name, descriptor
@@ -938,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;