From: khizmax Date: Mon, 6 Jun 2016 18:56:21 +0000 (+0300) Subject: Issue #59: added missing ifdef _DEBUG for assertions X-Git-Tag: v2.2.0~223 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=commitdiff_plain;h=6f7f64404704cdbb883dc9c405e10a2b0609c835 Issue #59: added missing ifdef _DEBUG for assertions --- diff --git a/cds/intrusive/segmented_queue.h b/cds/intrusive/segmented_queue.h index 83cfb1da..1a42b33a 100644 --- a/cds/intrusive/segmented_queue.h +++ b/cds/intrusive/segmented_queue.h @@ -374,7 +374,9 @@ namespace cds { namespace intrusive { return guard.assign( &m_List.back() ); } +# ifdef _DEBUG assert( m_List.empty() || populated( m_List.back() )); +# endif segment * pNew = allocate_segment(); m_Stat.onSegmentCreated(); @@ -406,7 +408,9 @@ namespace cds { namespace intrusive { return guard.assign( &m_List.front() ); } - assert( exhausted(m_List.front()) ); +# ifdef _DEBUG + assert( exhausted( m_List.front())); +# endif m_List.pop_front(); if ( m_List.empty() ) { diff --git a/thanks b/thanks index 755a62bc..97471040 100644 --- a/thanks +++ b/thanks @@ -6,6 +6,7 @@ blinkenlichten (https://github.com/blinkenlichten) Eugeny Kalishenko (https://github.com/eugenyk) Jelle van den Hooff Kyle Hegeman (https://github.com/khegeman) +Lily Tsai (https://github.com/tslilyai) Lucas Larsch Markus Elfring Mykola Dimura