diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-18 07:32:50 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-11-18 07:32:50 +0000 |
commit | 2a9ff82fdea27c48f2fba680fb5116191d6871c9 (patch) | |
tree | b2d5f60b020edbd4b321b5047ce82cd7a22ca386 /libjava/no-threads.cc | |
parent | 09aa88eda1c87dbccbf68c584be91fd8da23bc7a (diff) | |
download | gcc-2a9ff82fdea27c48f2fba680fb5116191d6871c9.tar.gz |
* no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30569 138bc75d-0d04-0410-961f-82ee72b054a4
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); } |