From 0f4244e130541a591d638c98f820b6b49e915ac0 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 12 Jan 2017 00:58:41 +0300 Subject: [PATCH] Use EXPECT FALSE for mark_from code documented as executed rarely * mark.c (GC_mark_from): Use EXPECT(cond, FALSE) instead of "Rarely executed" comment. --- mark.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mark.c b/mark.c index e5c8921..6fec7cd 100644 --- 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; } -- 2.7.4