Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff 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 |
line diff
1.1 --- a/VMS.h Wed Jun 22 16:12:27 2011 +0200 1.2 +++ b/VMS.h Mon Jul 04 19:45:43 2011 +0200 1.3 @@ -87,11 +87,13 @@ 1.4 #define MASTERLOCK_RETRIES 10000 1.5 1.6 // stack size in virtual processors created 1.7 -#define VIRT_PROCR_STACK_SIZE 0x4000 /* 16K */ 1.8 +#define VIRT_PROCR_STACK_SIZE 0x8000 /* 32K */ 1.9 1.10 // memory for VMS__malloc 1.11 #define MALLOC_ADDITIONAL_MEM_FROM_OS_SIZE 0x10000000 /* 256M */ 1.12 1.13 +#define CACHE_LINE 64 1.14 + 1.15 1.16 //============================== 1.17 1.18 @@ -371,6 +373,10 @@ 1.19 inline void * 1.20 VMS__take_sem_reqst_from( VMSReqst *req ); 1.21 1.22 +void inline 1.23 +VMS__handle_VMSSemReq( VMSReqst *req, VirtProcr *requestingPr, void *semEnv, 1.24 + ResumePrFnPtr resumePrFnPtr ); 1.25 + 1.26 //======================== STATS ====================== 1.27 1.28 //===== RDTSC wrapper ===== //Also runs with x86_64 code 1.29 @@ -413,11 +419,11 @@ 1.30 #define MakeTheMeasHists() \ 1.31 _VMSMasterEnv->measHistsInfo = \ 1.32 makePrivDynArrayOfSize( (void***)&(_VMSMasterEnv->measHists), 200); \ 1.33 - makeAMeasHist( createHistIdx, "Create", 50, 0, 100 ) \ 1.34 - makeAMeasHist( mutexLockHistIdx, "mutex lock", 50, 0, 100 ) \ 1.35 - makeAMeasHist( mutexUnlockHistIdx, "mutex unlock", 50, 0, 100 ) \ 1.36 - makeAMeasHist( condWaitHistIdx, "cond wait", 50, 0, 100 ) \ 1.37 - makeAMeasHist( condSignalHistIdx, "cond signal", 50, 0, 100 ) 1.38 + makeAMeasHist( createHistIdx, "create", 50, 0, 1000 ) \ 1.39 + makeAMeasHist( mutexLockHistIdx, "mutex_lock", 50, 0, 100 ) \ 1.40 + makeAMeasHist( mutexUnlockHistIdx, "mutex_unlock", 50, 0, 100 ) \ 1.41 + makeAMeasHist( condWaitHistIdx, "cond_wait", 50, 0, 100 ) \ 1.42 + makeAMeasHist( condSignalHistIdx, "cond_signal", 50, 0, 100 ) 1.43 1.44 #endif 1.45
