Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 78:521c75d64cef
Version before optimization
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Mon, 04 Jul 2011 19:45:43 +0200 |
| parents | fe5ec83f1baf |
| children | 97e26095c01f |
comparison
equal
deleted
inserted
replaced
| 42:b0facb93ea42 | 43:97f8a735677e |
|---|---|
| 85 #define MIN_WORK_UNIT_CYCLES 20000 | 85 #define MIN_WORK_UNIT_CYCLES 20000 |
| 86 | 86 |
| 87 #define MASTERLOCK_RETRIES 10000 | 87 #define MASTERLOCK_RETRIES 10000 |
| 88 | 88 |
| 89 // stack size in virtual processors created | 89 // stack size in virtual processors created |
| 90 #define VIRT_PROCR_STACK_SIZE 0x4000 /* 16K */ | 90 #define VIRT_PROCR_STACK_SIZE 0x8000 /* 32K */ |
| 91 | 91 |
| 92 // memory for VMS__malloc | 92 // memory for VMS__malloc |
| 93 #define MALLOC_ADDITIONAL_MEM_FROM_OS_SIZE 0x10000000 /* 256M */ | 93 #define MALLOC_ADDITIONAL_MEM_FROM_OS_SIZE 0x10000000 /* 256M */ |
| 94 | |
| 95 #define CACHE_LINE 64 | |
| 94 | 96 |
| 95 | 97 |
| 96 //============================== | 98 //============================== |
| 97 | 99 |
| 98 #define SUCCESS 0 | 100 #define SUCCESS 0 |
| 369 VMS__take_next_request_out_of( VirtProcr *procrWithReq ); | 371 VMS__take_next_request_out_of( VirtProcr *procrWithReq ); |
| 370 | 372 |
| 371 inline void * | 373 inline void * |
| 372 VMS__take_sem_reqst_from( VMSReqst *req ); | 374 VMS__take_sem_reqst_from( VMSReqst *req ); |
| 373 | 375 |
| 376 void inline | |
| 377 VMS__handle_VMSSemReq( VMSReqst *req, VirtProcr *requestingPr, void *semEnv, | |
| 378 ResumePrFnPtr resumePrFnPtr ); | |
| 379 | |
| 374 //======================== STATS ====================== | 380 //======================== STATS ====================== |
| 375 | 381 |
| 376 //===== RDTSC wrapper ===== //Also runs with x86_64 code | 382 //===== RDTSC wrapper ===== //Also runs with x86_64 code |
| 377 | 383 |
| 378 #define saveTimeStampCountInto(low, high) \ | 384 #define saveTimeStampCountInto(low, high) \ |
| 411 #define condSignalHistIdx 5 | 417 #define condSignalHistIdx 5 |
| 412 | 418 |
| 413 #define MakeTheMeasHists() \ | 419 #define MakeTheMeasHists() \ |
| 414 _VMSMasterEnv->measHistsInfo = \ | 420 _VMSMasterEnv->measHistsInfo = \ |
| 415 makePrivDynArrayOfSize( (void***)&(_VMSMasterEnv->measHists), 200); \ | 421 makePrivDynArrayOfSize( (void***)&(_VMSMasterEnv->measHists), 200); \ |
| 416 makeAMeasHist( createHistIdx, "Create", 50, 0, 100 ) \ | 422 makeAMeasHist( createHistIdx, "create", 50, 0, 1000 ) \ |
| 417 makeAMeasHist( mutexLockHistIdx, "mutex lock", 50, 0, 100 ) \ | 423 makeAMeasHist( mutexLockHistIdx, "mutex_lock", 50, 0, 100 ) \ |
| 418 makeAMeasHist( mutexUnlockHistIdx, "mutex unlock", 50, 0, 100 ) \ | 424 makeAMeasHist( mutexUnlockHistIdx, "mutex_unlock", 50, 0, 100 ) \ |
| 419 makeAMeasHist( condWaitHistIdx, "cond wait", 50, 0, 100 ) \ | 425 makeAMeasHist( condWaitHistIdx, "cond_wait", 50, 0, 100 ) \ |
| 420 makeAMeasHist( condSignalHistIdx, "cond signal", 50, 0, 100 ) | 426 makeAMeasHist( condSignalHistIdx, "cond_signal", 50, 0, 100 ) |
| 421 | 427 |
| 422 #endif | 428 #endif |
| 423 | 429 |
| 424 | 430 |
| 425 #ifdef VCILK | 431 #ifdef VCILK |
