Issue #59: added missing ifdef _DEBUG for assertions
authorkhizmax <libcds.dev@gmail.com>
Mon, 6 Jun 2016 18:56:21 +0000 (21:56 +0300)
committerkhizmax <libcds.dev@gmail.com>
Mon, 6 Jun 2016 18:56:21 +0000 (21:56 +0300)
cds/intrusive/segmented_queue.h
thanks

index 83cfb1da6c5f51f1ef43283ae006219d59a9e5aa..1a42b33ae9a35026c1c327b765b5642653bfa4d8 100644 (file)
@@ -374,7 +374,9 @@ namespace cds { namespace intrusive {
                     return guard.assign( &m_List.back() );
                 }
 
                     return guard.assign( &m_List.back() );
                 }
 
+#           ifdef _DEBUG
                 assert( m_List.empty() || populated( m_List.back() ));
                 assert( m_List.empty() || populated( m_List.back() ));
+#           endif
 
                 segment * pNew = allocate_segment();
                 m_Stat.onSegmentCreated();
 
                 segment * pNew = allocate_segment();
                 m_Stat.onSegmentCreated();
@@ -406,7 +408,9 @@ namespace cds { namespace intrusive {
                         return guard.assign( &m_List.front() );
                     }
 
                         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() ) {
 
                     m_List.pop_front();
                     if ( m_List.empty() ) {
diff --git a/thanks b/thanks
index 755a62bcbe038eb0744e19572b004f09babe7396..974710400d0189d84ded67ee6999a2d40e6dffd2 100644 (file)
--- a/thanks
+++ b/thanks
@@ -6,6 +6,7 @@ blinkenlichten (https://github.com/blinkenlichten)
 Eugeny Kalishenko (https://github.com/eugenyk)\r
 Jelle van den Hooff\r
 Kyle Hegeman (https://github.com/khegeman)\r
 Eugeny Kalishenko (https://github.com/eugenyk)\r
 Jelle van den Hooff\r
 Kyle Hegeman (https://github.com/khegeman)\r
+Lily Tsai (https://github.com/tslilyai)\r
 Lucas Larsch\r
 Markus Elfring\r
 Mykola Dimura\r
 Lucas Larsch\r
 Markus Elfring\r
 Mykola Dimura\r