comparison vmalloc.c @ 174:c3f458403cd6

Always allocate more than 256 byte, measurements removed in master loop, aligned slots
author Merten Sach <msach@mailbox.tu-berlin.de>
date Tue, 20 Dec 2011 16:50:21 +0100
parents 1fe7ba1ab81f
children de5e7c522f1f
comparison
equal deleted inserted replaced
28:addbb180c0d4 30:e211ad3f1708
210 int32 startStamp, endStamp; 210 int32 startStamp, endStamp;
211 saveLowTimeStampCountInto( startStamp ); 211 saveLowTimeStampCountInto( startStamp );
212 #endif 212 #endif
213 //======================================================================== 213 //========================================================================
214 214
215 sizeRequested += CACHELINE_SIZE; //Allocate more than cacheline_size to avoid false sharing
216
215 MallocArrays* freeLists = _VMSMasterEnv->freeLists; 217 MallocArrays* freeLists = _VMSMasterEnv->freeLists;
216 MallocProlog* foundChunk; 218 MallocProlog* foundChunk;
217 219
218 //Return a small chunk if the requested size is smaller than 128B 220 //Return a small chunk if the requested size is smaller than 128B
219 if(sizeRequested <= LOWER_BOUND) 221 if(sizeRequested <= LOWER_BOUND)