Merged revisions 7797-7917 via svnmerge from
[cacao.git] / src / vmcore / loader.c
index 28c413a933c722a5483ed9eb8134e7e4ed5c1ac3..d3c05fa55b078face3aa8e2981657104485c4d20 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: loader.c 7693 2007-04-12 14:56:49Z michi $
+   $Id: loader.c 7918 2007-05-20 20:42:18Z michi $
 
 */
 
 
 #include "mm/memory.h"
 
-#if defined(ENABLE_THREADS)
-# include "threads/native/lock.h"
-#else
-# include "threads/none/lock.h"
-#endif
+#include "threads/lock-common.h"
 
 #include "toolbox/hashtable.h"
 #include "toolbox/logging.h"
@@ -102,7 +98,7 @@ bool loader_init(void)
        for (lce = list_first(list_classpath_entries); lce != NULL;
                 lce = list_next(list_classpath_entries, lce))
                if (lce->type == CLASSPATH_ARCHIVE)
-                       lock_init_object_lock((java_objectheader *) lce);
+                       LOCK_INIT_OBJECT_LOCK(lce);
 #endif
 
        /* initialize classloader hashtable, 10 entries should be enough */