comparison VMS.h @ 186:69eb54ce9c4b

fix uninitialised semantic Data bug
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Tue, 31 Jan 2012 18:30:35 +0100
parents 28cc465f7eb7
children fe5ad5726e36
comparison
equal deleted inserted replaced
85:0078ced26a6f 86:7fd8d4ca34bb
40 //These defines turn types of bug messages on and off 40 //These defines turn types of bug messages on and off
41 // be sure debug messages are un-commented (next block of defines) 41 // be sure debug messages are un-commented (next block of defines)
42 #define dbgAppFlow FALSE /* Top level flow of application code -- general*/ 42 #define dbgAppFlow FALSE /* Top level flow of application code -- general*/
43 #define dbgProbes FALSE /* for issues inside probes themselves*/ 43 #define dbgProbes FALSE /* for issues inside probes themselves*/
44 #define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/ 44 #define dbgB2BMaster FALSE /* in coreloop, back to back master VPs*/
45 #define dbgRqstHdlr FALSE /* in request handler code*/ 45 #define dbgRqstHdlr TRUE /* in request handler code*/
46 #define dbgDependency TRUE /* in request handler code, print dependencies */ 46 #define dbgDependency TRUE /* in request handler code, print dependencies */
47 47
48 //Comment or un- the substitute half to turn on/off types of debug message 48 //Comment or un- the substitute half to turn on/off types of debug message
49 #define DEBUG( bool, msg) \ 49 #define DEBUG( bool, msg) \
50 if( bool){ printf(msg); fflush(stdin);} 50 if( bool){ printf(msg); fflush(stdin);}
84 // machine 84 // machine
85 #define NUM_CORES 2 85 #define NUM_CORES 2
86 86
87 // tradeoff amortizing master fixed overhead vs imbalance potential 87 // tradeoff amortizing master fixed overhead vs imbalance potential
88 // when work-stealing, can make bigger, at risk of losing cache affinity 88 // when work-stealing, can make bigger, at risk of losing cache affinity
89 #define NUM_SCHED_SLOTS 5 89 #define NUM_SCHED_SLOTS 1
90 90
91 #define MIN_WORK_UNIT_CYCLES 20000 91 #define MIN_WORK_UNIT_CYCLES 20000
92 92
93 #define MASTERLOCK_RETRIES 10000 93 #define MASTERLOCK_RETRIES 10000
94 94
446 MasterLoop_beforeReqHdlr = 1, 446 MasterLoop_beforeReqHdlr = 1,
447 MasterLoop_afterReqHdlr, 447 MasterLoop_afterReqHdlr,
448 MasterLoop_beforeAssign, 448 MasterLoop_beforeAssign,
449 MasterLoop_afterAssign, 449 MasterLoop_afterAssign,
450 CoreLoop_afterWork, 450 CoreLoop_afterWork,
451 CoreLoop_beforeWork 451 CoreLoop_beforeWork,
452 Procr_suspend,
453 MasterLoop_beforeNextAssign
452 }; 454 };
453 455
454 #define getReturnAddressBeforeLibraryCall(vp_ptr, res_ptr) do{ \ 456 #define getReturnAddressBeforeLibraryCall(vp_ptr, res_ptr) do{ \
455 void* frame_ptr0 = vp_ptr->framePtr; \ 457 void* frame_ptr0 = vp_ptr->framePtr; \
456 void* frame_ptr1 = *((void**)frame_ptr0); \ 458 void* frame_ptr1 = *((void**)frame_ptr0); \