X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvmcore%2Floader.c;h=d3c05fa55b078face3aa8e2981657104485c4d20;hb=bfb7d15b502b8170ec8a9b348c546418c0e44ace;hp=28c413a933c722a5483ed9eb8134e7e4ed5c1ac3;hpb=2457ad8bcdb80a1026380a158052aa91ad06651d;p=cacao.git diff --git a/src/vmcore/loader.c b/src/vmcore/loader.c index 28c413a93..d3c05fa55 100644 --- a/src/vmcore/loader.c +++ b/src/vmcore/loader.c @@ -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 $ */ @@ -37,11 +37,7 @@ #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 */