Issue #59: added missing ifdef _DEBUG for assertions
[libcds.git] / cds / intrusive / segmented_queue.h
index 83cfb1da6c5f51f1ef43283ae006219d59a9e5aa..1a42b33ae9a35026c1c327b765b5642653bfa4d8 100644 (file)
@@ -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() ) {