diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-11-18 07:32:50 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-11-18 07:32:50 +0000 |
commit | 8cb9ab4b7e19dec00113d86ea6aa4369617430e4 (patch) | |
tree | b2d5f60b020edbd4b321b5047ce82cd7a22ca386 /libjava/no-threads.cc | |
parent | 5b8c39e0aa5776aa82ecc322325b830e42e923e2 (diff) | |
download | gcc-8cb9ab4b7e19dec00113d86ea6aa4369617430e4.tar.gz |
* no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
From-SVN: r30569
Diffstat (limited to 'libjava/no-threads.cc')
-rw-r--r-- | libjava/no-threads.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |