Use EXPECT FALSE for mark_from code documented as executed rarely
authorIvan Maidanski <ivmai@mail.ru>
Wed, 11 Jan 2017 21:58:41 +0000 (00:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 11 Jan 2017 21:58:41 +0000 (00:58 +0300)
* mark.c (GC_mark_from): Use EXPECT(cond, FALSE) instead of
"Rarely executed" comment.

mark.c

diff --git a/mark.c b/mark.c
index e5c8921..6fec7cd 100644 (file)
--- a/mark.c
+++ b/mark.c
@@ -784,8 +784,7 @@ GC_INNER mse * GC_mark_from(mse *mark_stack_top, mse *mark_stack,
             /* the type descriptor, and get a 0 GC descriptor, which    */
             /* is ideal.  Unfortunately, we need to check for the last  */
             /* object case explicitly.                                  */
-            if (0 == type_descr) {
-                /* Rarely executed.     */
+            if (EXPECT(0 == type_descr, FALSE)) {
                 mark_stack_top--;
                 continue;
             }