OSDN Git Service

* no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Nov 1999 07:32:50 +0000 (07:32 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Nov 1999 07:32:50 +0000 (07:32 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30569 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/no-threads.cc

index 9828cba..b81d1e7 100644 (file)
@@ -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.
index 22c30f6..98ebc13 100644 (file)
@@ -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);
 }