summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/ChangeLog2
-rw-r--r--libjava/no-threads.cc5
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 9828cbabdfa..b81d1e7af42 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,7 @@
1999-11-18 Tom Tromey <tromey@cygnus.com>
+ * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
+
* java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
minus 1.
(method_cache): Made larger.
diff --git a/libjava/no-threads.cc b/libjava/no-threads.cc
index 22c30f637e2..98ebc13f918 100644
--- a/libjava/no-threads.cc
+++ b/libjava/no-threads.cc
@@ -20,7 +20,10 @@ void
_Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *,
_Jv_ThreadStartFunc *meth)
{
- JvAssert (! _Jv_OnlyThread);
+ // Don't use JvAssert, since we want this to fail even when compiled
+ // without assertions.
+ if (_Jv_OnlyThread)
+ JvFail ("only thread already running");
_Jv_OnlyThread = thread;
(*meth) (thread);
}