Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.c @ 132:dbfc8382d546
distributed memory allocation interface - unfinished
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Fri, 16 Sep 2011 14:25:49 +0200 |
| parents | d4c881c7f03a |
| children | a9b72021f053 |
comparison
equal
deleted
inserted
replaced
| 54:51d3a3122cce | 58:7765c734ce85 |
|---|---|
| 103 _VMSMasterEnv = malloc( sizeof(MasterEnv) ); | 103 _VMSMasterEnv = malloc( sizeof(MasterEnv) ); |
| 104 | 104 |
| 105 //Very first thing put into the master env is the free-list, seeded | 105 //Very first thing put into the master env is the free-list, seeded |
| 106 // with a massive initial chunk of memory. | 106 // with a massive initial chunk of memory. |
| 107 //After this, all other mallocs are VMS__malloc. | 107 //After this, all other mallocs are VMS__malloc. |
| 108 _VMSMasterEnv->freeListHead = VMS_ext__create_free_list(); | 108 int i; |
| 109 for(i=0; i<NUM_CORES; i++) | |
| 110 { | |
| 111 _VMSMasterEnv->freeListHead[i] = VMS_ext__create_free_list(); | |
| 112 } | |
| 109 | 113 |
| 110 | 114 |
| 111 //============================= MEASUREMENT STUFF ======================== | 115 //============================= MEASUREMENT STUFF ======================== |
| 112 #ifdef MEAS__TIME_MALLOC | 116 #ifdef MEAS__TIME_MALLOC |
| 113 _VMSMasterEnv->mallocTimeHist = makeFixedBinHistExt( 100, 0, 100, | 117 _VMSMasterEnv->mallocTimeHist = makeFixedBinHistExt( 100, 0, 100, |
