Merged revisions 7797-7917 via svnmerge from
[cacao.git] / src / vm / jit / show.c
index d577b2b38d6d1cce92f9eacca9de2896879a6ead..12f28753f328db6c1be1f0cfd0d7de24a7f08841 100644 (file)
 
 #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 "vm/global.h"
 #include "vm/builtin.h"
@@ -83,7 +79,7 @@ bool show_init(void)
 
        show_global_lock = NEW(java_objectheader);
 
-       lock_init_object_lock(show_global_lock);
+       LOCK_INIT_OBJECT_LOCK(show_global_lock);
 #endif
 
        /* everything's ok */