* Written by Tim Wilkinson <tim@tjwassoc.demon.co.uk>, 1996.
*/
+#include "config.h"
+
#include <assert.h>
#include <stdio.h>
#include "thread.h"
#include "locks.h"
-#include "../tables.h"
-#include "../native.h"
-#include "../loader.h"
+#include "tables.h"
+#include "native.h"
+#include "loader.h"
static classinfo *class_java_lang_IllegalMonitorStateException;
/* Load exception classes */
class_java_lang_IllegalMonitorStateException =
- loader_load(unicode_new_char("java/lang/IllegalMonitorStateException"));
+ loader_load(utf_new_char("java/lang/IllegalMonitorStateException"));
}
/*
void
internal_lock_mutex(iMux* mux)
{
- assert(blockInts == 1);
+ assert(blockInts > 0);
if (mux->holder == 0)
{
{
thread* tid;
- assert(blockInts == 1);
+ assert(blockInts > 0);
assert(mux->holder == currentThread);
exceptionptr = native_new_and_init(class_java_lang_IllegalMonitorStateException);
}
- assert(blockInts == 1);
+ assert(blockInts > 0);
count = mux->count;
mux->holder = 0;
exceptionptr = native_new_and_init(class_java_lang_IllegalMonitorStateException);
}
- assert(blockInts == 1);
+ assert(blockInts > 0);
/* Remove one thread from cv list */
if (cv->cvWaiters != 0) {
exceptionptr = native_new_and_init(class_java_lang_IllegalMonitorStateException);
}
- assert(blockInts == 1);
+ assert(blockInts > 0);
/* Find the end of the cv list */
if (cv->cvWaiters) {