From 1de6c22b49d3abe1fd7f35e3b64e77218f33872c Mon Sep 17 00:00:00 2001 From: daan Date: Tue, 17 Sep 2019 18:07:32 -0700 Subject: [PATCH] remove incorrect region_count comment --- src/memory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/memory.c b/src/memory.c index 52efbace..0ad582cd 100644 --- a/src/memory.c +++ b/src/memory.c @@ -181,7 +181,6 @@ static bool mi_region_commit_blocks(mem_region_t* region, size_t idx, size_t bit else { // failed, another thread allocated just before us! // we assign it to a later slot instead (up to 4 tries). - // note: we don't need to increment the region count, this will happen on another allocation for(size_t i = 1; i <= 4 && idx + i < MI_REGION_MAX; i++) { if (mi_atomic_cas_strong(®ions[idx+i].info, info, 0)) { mi_atomic_increment(®ions_count);