#include "vm/global.h"
+/* ATTENTION: Don't include a threads header here, as it could include
+ java_lang_Thread.h and thus break the build (means, it recompiles
+ every time)! Take care of that... */
+
#if defined(ENABLE_THREADS)
# include "threads/native/lock.h"
#else
# include "threads/none/lock.h"
#endif
-#include "threads/threads-common.h"
-
/* only define the following stuff with thread enabled ************************/
void lock_init(void);
-void lock_init_execution_env(struct threadobject *thread);
-void lock_record_free_pools(lock_record_pool_t *pool);
-
void lock_init_object_lock(java_objectheader *);
lock_record_t *lock_get_initial_lock_word(void);