From 453a9722003989052d940519488fc33ad9d2d5f0 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Wed, 20 Jul 2016 15:25:50 -0400 Subject: [PATCH] re-enable memory speed up --- 4coder_mem.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/4coder_mem.h b/4coder_mem.h index 980e8010..2d481a0d 100644 --- a/4coder_mem.h +++ b/4coder_mem.h @@ -202,9 +202,9 @@ static void* general_memory_allocate(General_Memory *general, int32_t size){ void *result = 0; if (size < BUBBLE_MIN_SIZE) size = BUBBLE_MIN_SIZE; - for (Bubble *bubble = general->sentinel.next; - bubble != &general->sentinel; - bubble = bubble->next){ + for (Bubble *bubble = general->free_sentinel.next2; + bubble != &general->free_sentinel; + bubble = bubble->next2){ if (!(bubble->flags & MEM_BUBBLE_USED)){ if (bubble->size >= size){ result = bubble + 1;