comparison vmalloc.c @ 58:26d53313a8f2

Merge Between VCilk and SSR versions of VMS -- both up to date now has macros for switching VPs correct gated work-stealing all queues are VMS queues
author Me
date Thu, 04 Nov 2010 18:32:28 -0700
parents 42dd44df1bb0
children 7b799a46cc87
comparison
equal deleted inserted replaced
1:0d3829b76e44 2:af8d407abe7a
65 else 65 else
66 currElem = currElem->nextChunkInFreeList; 66 currElem = currElem->nextChunkInFreeList;
67 } 67 }
68 68
69 if( foundElem == NULL ) 69 if( foundElem == NULL )
70 { PRINT_ERROR("\nmalloc failed\n") 70 { ERROR("\nmalloc failed\n")
71 return NULL; //indicates malloc failed 71 return NULL; //indicates malloc failed
72 } 72 }
73 //Using a kludge to identify the element that is the top chunk in the 73 //Using a kludge to identify the element that is the top chunk in the
74 // heap -- saving top-of-heap addr in head's nextHigherInMem -- and 74 // heap -- saving top-of-heap addr in head's nextHigherInMem -- and
75 // save addr of start of heap in head's nextLowerInMem 75 // save addr of start of heap in head's nextLowerInMem