From 8cb9ab4b7e19dec00113d86ea6aa4369617430e4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 18 Nov 1999 07:32:50 +0000 Subject: * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert. From-SVN: r30569 --- libjava/no-threads.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libjava/no-threads.cc') 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); } -- cgit v1.2.1