re-enable memory speed up

This commit is contained in:
Allen Webster 2016-07-20 15:25:50 -04:00
parent 468fe81f61
commit 453a972200
1 changed files with 3 additions and 3 deletions

View File

@ -202,9 +202,9 @@ static void*
general_memory_allocate(General_Memory *general, int32_t size){ general_memory_allocate(General_Memory *general, int32_t size){
void *result = 0; void *result = 0;
if (size < BUBBLE_MIN_SIZE) size = BUBBLE_MIN_SIZE; if (size < BUBBLE_MIN_SIZE) size = BUBBLE_MIN_SIZE;
for (Bubble *bubble = general->sentinel.next; for (Bubble *bubble = general->free_sentinel.next2;
bubble != &general->sentinel; bubble != &general->free_sentinel;
bubble = bubble->next){ bubble = bubble->next2){
if (!(bubble->flags & MEM_BUBBLE_USED)){ if (!(bubble->flags & MEM_BUBBLE_USED)){
if (bubble->size >= size){ if (bubble->size >= size){
result = bubble + 1; result = bubble + 1;