X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvmcore%2Fclasscache.c;h=93107b50b421b6b6519ee1d400da94c376426551;hb=bfb7d15b502b8170ec8a9b348c546418c0e44ace;hp=0b26cc5c1e99b8b9cbdd133021c8267083c89087;hpb=2457ad8bcdb80a1026380a158052aa91ad06651d;p=cacao.git diff --git a/src/vmcore/classcache.c b/src/vmcore/classcache.c index 0b26cc5c1..93107b50b 100644 --- a/src/vmcore/classcache.c +++ b/src/vmcore/classcache.c @@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - $Id: classcache.c 7560 2007-03-23 18:51:41Z twisti $ + $Id: classcache.c 7813 2007-04-25 19:20:13Z twisti $ */ @@ -35,9 +35,7 @@ #include "mm/memory.h" -#if defined(ENABLE_THREADS) -# include "threads/native/lock.h" -#endif +#include "threads/lock-common.h" #include "toolbox/hashtable.h" #include "toolbox/logging.h" @@ -266,7 +264,7 @@ bool classcache_init(void) lock_hashtable_classcache = NEW(java_objectheader); - lock_init_object_lock(lock_hashtable_classcache); + LOCK_INIT_OBJECT_LOCK(lock_hashtable_classcache); #endif /* everything's ok */