From a3ad94edd406b9abc26493761764d4034dda69fa Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 29 Nov 2006 17:56:40 +0000 Subject: Hash tables, dynamic section, i386 PLT, gold_assert. --- gold/gold-threads.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gold/gold-threads.cc') diff --git a/gold/gold-threads.cc b/gold/gold-threads.cc index c6e1170..5373739 100644 --- a/gold/gold-threads.cc +++ b/gold/gold-threads.cc @@ -1,7 +1,5 @@ // gold-threads.cc -- thread support for gold -#include - #include "gold.h" #ifdef ENABLE_THREADS @@ -87,20 +85,20 @@ Lock_impl::Lock_impl() Lock_impl::~Lock_impl() { - assert(!this->acquired_); + gold_assert(!this->acquired_); } void Lock_impl::acquire() { - assert(!this->acquired_); + gold_assert(!this->acquired_); this->acquired_ = true; } void Lock_impl::release() { - assert(this->acquired_); + gold_assert(this->acquired_); this->acquired_ = false; } @@ -192,7 +190,7 @@ Condvar_impl::~Condvar_impl() void Condvar_impl::wait(Lock_impl* li) { - assert(li->acquired_); + gold_assert(li->acquired_); } void -- cgit v1.1