Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison vmalloc.c @ 206:a262abf4b8d5
brch file for new WestmereEx 4x10 HW Branch
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Fri, 17 Feb 2012 18:43:52 +0100 |
| parents | de5e7c522f1f |
| children |
comparison
equal
deleted
inserted
replaced
| 31:605b2ff5f7ce | 35:6ea316b9c0d7 |
|---|---|
| 13 #include <stdio.h> | 13 #include <stdio.h> |
| 14 #include <string.h> | 14 #include <string.h> |
| 15 #include <math.h> | 15 #include <math.h> |
| 16 | 16 |
| 17 #include "VMS.h" | 17 #include "VMS.h" |
| 18 #include "Histogram/Histogram.h" | 18 #include "C_Libraries/Histogram/Histogram.h" |
| 19 | 19 |
| 20 #define MAX_UINT64 0xFFFFFFFFFFFFFFFF | 20 #define MAX_UINT64 0xFFFFFFFFFFFFFFFF |
| 21 | 21 |
| 22 //A MallocProlog is a head element if the HigherInMem variable is NULL | 22 //A MallocProlog is a head element if the HigherInMem variable is NULL |
| 23 //A Chunk is free if the prevChunkInFreeList variable is NULL | 23 //A Chunk is free if the prevChunkInFreeList variable is NULL |
| 203 | 203 |
| 204 /* | 204 /* |
| 205 * This is sequential code, meant to only be called from the Master, not from | 205 * This is sequential code, meant to only be called from the Master, not from |
| 206 * any slave VPs. | 206 * any slave VPs. |
| 207 */ | 207 */ |
| 208 void *VMS__malloc( size_t sizeRequested ) | 208 void *VMS_int__malloc( size_t sizeRequested ) |
| 209 { | 209 { |
| 210 //============================= MEASUREMENT STUFF ======================== | 210 //============================= MEASUREMENT STUFF ======================== |
| 211 #ifdef MEAS__TIME_MALLOC | 211 #ifdef MEAS__TIME_MALLOC |
| 212 int32 startStamp, endStamp; | 212 int32 startStamp, endStamp; |
| 213 saveLowTimeStampCountInto( startStamp ); | 213 saveLowTimeStampCountInto( startStamp ); |
| 259 /* | 259 /* |
| 260 * This is sequential code, meant to only be called from the Master, not from | 260 * This is sequential code, meant to only be called from the Master, not from |
| 261 * any slave VPs. | 261 * any slave VPs. |
| 262 */ | 262 */ |
| 263 void | 263 void |
| 264 VMS__free( void *ptrToFree ) | 264 VMS_int__free( void *ptrToFree ) |
| 265 { | 265 { |
| 266 | 266 |
| 267 //============================= MEASUREMENT STUFF ======================== | 267 //============================= MEASUREMENT STUFF ======================== |
| 268 #ifdef MEAS__TIME_MALLOC | 268 #ifdef MEAS__TIME_MALLOC |
| 269 int32 startStamp, endStamp; | 269 int32 startStamp, endStamp; |
