comparison VMS.c @ 134:a9b72021f053

Distributed memory management w/o free requests working
author Merten Sach <msach@mailbox.tu-berlin.de>
date Fri, 16 Sep 2011 16:19:24 +0200
parents dbfc8382d546
children 0b49fd35afc1
comparison
equal deleted inserted replaced
58:7765c734ce85 59:cac64ab4b0f6
11 #include <inttypes.h> 11 #include <inttypes.h>
12 #include <sys/time.h> 12 #include <sys/time.h>
13 13
14 #include "VMS.h" 14 #include "VMS.h"
15 #include "ProcrContext.h" 15 #include "ProcrContext.h"
16 #include "scheduling.h"
16 #include "Queue_impl/BlockingQueue.h" 17 #include "Queue_impl/BlockingQueue.h"
17 #include "Histogram/Histogram.h" 18 #include "Histogram/Histogram.h"
18 19
19 20
20 #define thdAttrs NULL 21 #define thdAttrs NULL
107 //After this, all other mallocs are VMS__malloc. 108 //After this, all other mallocs are VMS__malloc.
108 int i; 109 int i;
109 for(i=0; i<NUM_CORES; i++) 110 for(i=0; i<NUM_CORES; i++)
110 { 111 {
111 _VMSMasterEnv->freeListHead[i] = VMS_ext__create_free_list(); 112 _VMSMasterEnv->freeListHead[i] = VMS_ext__create_free_list();
113 _VMSMasterEnv->interMasterRequestsFor[i] = NULL;
112 } 114 }
115 _VMSMasterEnv->currentMasterProcrID = 0;
113 116
114 117
115 //============================= MEASUREMENT STUFF ======================== 118 //============================= MEASUREMENT STUFF ========================
116 #ifdef MEAS__TIME_MALLOC 119 #ifdef MEAS__TIME_MALLOC
117 _VMSMasterEnv->mallocTimeHist = makeFixedBinHistExt( 100, 0, 100, 120 _VMSMasterEnv->mallocTimeHist = makeFixedBinHistExt( 100, 0, 100,
766 freeDynArrayDeep( _VMSMasterEnv->dynIntervalProbesInfo, &VMS__free_probe); 769 freeDynArrayDeep( _VMSMasterEnv->dynIntervalProbesInfo, &VMS__free_probe);
767 #endif 770 #endif
768 //======================================================================== 771 //========================================================================
769 */ 772 */
770 //These are the only two that use system free 773 //These are the only two that use system free
771 VMS_ext__free_free_list( _VMSMasterEnv->freeListHead ); 774 VMS_ext__free_free_list( _VMSMasterEnv->freeListHead);
772 free( (void *)_VMSMasterEnv ); 775 free( (void *)_VMSMasterEnv );
773 } 776 }
774 777
775 778
776 //================================ 779 //================================