From af707b5d97cf96e7fe847790fa408ff9af889587 Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Thu, 23 May 2013 19:04:42 +0100 Subject: [PATCH] Clarifying comment about extra queue element Copied from Perforce Change: 182119 ServerID: perforce.ravenbrook.com --- mps/code/abq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mps/code/abq.c b/mps/code/abq.c index 1ba82074c91..cee37b32989 100644 --- a/mps/code/abq.c +++ b/mps/code/abq.c @@ -37,7 +37,8 @@ Res ABQInit(Arena arena, ABQ abq, void *owner, Count elements, Size elementSize) AVER(abq != NULL); AVER(elements > 0); - /* Necessary in order to be able to distinguish "empty" from "full" */ + /* Allocate a dummy extra element in order to be able to distinguish + "empty" from "full" */ elements = elements + 1; res = ControlAlloc(&p, arena, ABQQueueSize(elements, elementSize),