Commit 8cb9ab4b by Tom Tromey Committed by Tom Tromey

* no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.

From-SVN: r30569
parent 5b8c39e0
1999-11-18 Tom Tromey <tromey@cygnus.com> 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 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
minus 1. minus 1.
(method_cache): Made larger. (method_cache): Made larger.
......
...@@ -20,7 +20,10 @@ void ...@@ -20,7 +20,10 @@ void
_Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *, _Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *,
_Jv_ThreadStartFunc *meth) _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; _Jv_OnlyThread = thread;
(*meth) (thread); (*meth) (thread);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment