comparison ProcrContext.c @ 112:fac1d896f6e9

fixed: incomplete initialization of first record in vp
author Nina Engelhardt
date Mon, 15 Aug 2011 18:54:19 +0200
parents b1817e2451b1
children ce02441b77cf
comparison
equal deleted inserted replaced
4:41145a6165ef 5:b35275d7b5c9
62 #ifdef MEAS__PERF_COUNTERS 62 #ifdef MEAS__PERF_COUNTERS
63 newPr->counter_history = VMS__malloc(10*sizeof(void*)); 63 newPr->counter_history = VMS__malloc(10*sizeof(void*));
64 newPr->counter_history_array_info = makePrivDynArrayInfoFrom(&(newPr->counter_history),10); 64 newPr->counter_history_array_info = makePrivDynArrayInfoFrom(&(newPr->counter_history),10);
65 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); 65 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord));
66 newRecord->task_position = 0; 66 newRecord->task_position = 0;
67 newRecord->vp_id = newPr->procrID;
68 newRecord->addr_of_libcall_for_req = fnPtr;
67 addToDynArray( (void*) newRecord, newPr->counter_history_array_info); 69 addToDynArray( (void*) newRecord, newPr->counter_history_array_info);
68 #endif 70 #endif
69 //======================================================================== 71 //========================================================================
70 72
71 return newPr; 73 return newPr;