Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
changeset 63:a6c442d52590 test_without_inline
removed all inline, to see if -O3 works -- now -O0 broken too! will go back
| author | Me |
|---|---|
| date | Fri, 12 Nov 2010 08:42:25 -0800 |
| parents | dd3e60aeae26 |
| children | 38c1070e2c92 |
| files | MasterLoop.c VMS.c VMS.h probes.c probes.h vmalloc.c |
| diffstat | 6 files changed, 20 insertions(+), 20 deletions(-) [+] |
line diff
1.1 --- a/MasterLoop.c Fri Nov 12 07:36:01 2010 -0800 1.2 +++ b/MasterLoop.c Fri Nov 12 08:42:25 2010 -0800 1.3 @@ -13,7 +13,7 @@ 1.4 1.5 1.6 //=========================================================================== 1.7 -void inline 1.8 +void 1.9 stealWorkInto( SchedSlot *currSlot, VMSQueueStruc *readyToAnimateQ, 1.10 VirtProcr *masterPr ); 1.11 1.12 @@ -206,7 +206,7 @@ 1.13 /*This has a race condition -- the coreloops are accessing their own queues 1.14 * at the same time that this work-stealer on a different core is trying to 1.15 */ 1.16 -void inline 1.17 +void 1.18 stealWorkInto( SchedSlot *currSlot, VMSQueueStruc *readyToAnimateQ, 1.19 VirtProcr *masterPr ) 1.20 { 1.21 @@ -309,7 +309,7 @@ 1.22 * write FALSE to the gate closed var. 1.23 * 1.24 */ 1.25 -void inline 1.26 +void 1.27 gateProtected_stealWorkInto( SchedSlot *currSlot, 1.28 VMSQueueStruc *myReadyToAnimateQ, 1.29 VirtProcr *masterPr )
2.1 --- a/VMS.c Fri Nov 12 07:36:01 2010 -0800 2.2 +++ b/VMS.c Fri Nov 12 08:42:25 2010 -0800 2.3 @@ -261,7 +261,7 @@ 2.4 * animator state to return to -- 2.5 * 2.6 */ 2.7 -inline VirtProcr * 2.8 + VirtProcr * 2.9 create_procr_helper( VirtProcr *newPr, VirtProcrFnPtr fnPtr, 2.10 void *initialData, char *stackLocs ) 2.11 { 2.12 @@ -298,7 +298,7 @@ 2.13 return newPr; 2.14 } 2.15 2.16 -inline VirtProcr * 2.17 + VirtProcr * 2.18 VMS__create_procr( VirtProcrFnPtr fnPtr, void *initialData ) 2.19 { VirtProcr *newPr; 2.20 char *stackLocs; 2.21 @@ -315,7 +315,7 @@ 2.22 * be called from main thread or other thread -- never from code animated by 2.23 * a VMS virtual processor. 2.24 */ 2.25 -inline VirtProcr * 2.26 + VirtProcr * 2.27 VMS_ext__create_procr( VirtProcrFnPtr fnPtr, void *initialData ) 2.28 { VirtProcr *newPr; 2.29 char *stackLocs; 2.30 @@ -503,7 +503,7 @@ 2.31 * 2.32 *The request handler has to call VMS__free_VMSReq for any of these 2.33 */ 2.34 -inline void 2.35 + void 2.36 VMS__add_sem_request_in_mallocd_VMSReqst( void *semReqData, 2.37 VirtProcr *callingPr ) 2.38 { VMSReqst *req; 2.39 @@ -520,7 +520,7 @@ 2.40 * to plugin 2.41 *Then it does suspend, to cause request to be sent. 2.42 */ 2.43 -inline void 2.44 + void 2.45 VMS__send_sem_request( void *semReqData, VirtProcr *callingPr ) 2.46 { VMSReqst req; 2.47 2.48 @@ -533,7 +533,7 @@ 2.49 } 2.50 2.51 2.52 -inline void 2.53 + void 2.54 VMS__send_VMSSem_request( void *semReqData, VirtProcr *callingPr ) 2.55 { VMSReqst req; 2.56 2.57 @@ -560,7 +560,7 @@ 2.58 } 2.59 2.60 2.61 -inline void * 2.62 + void * 2.63 VMS__take_sem_reqst_from( VMSReqst *req ) 2.64 { 2.65 return req->semReqData; 2.66 @@ -582,7 +582,7 @@ 2.67 * VMS-core steer the request to appropriate plugin 2.68 * Do the same for OS calls -- look later at it.. 2.69 */ 2.70 -void inline 2.71 +void 2.72 VMS__handle_VMSSemReq( VMSReqst *req, VirtProcr *requestingPr, void *semEnv, 2.73 ResumePrFnPtr resumePrFnPtr ) 2.74 { VMSSemReq *semReq;
3.1 --- a/VMS.h Fri Nov 12 07:36:01 2010 -0800 3.2 +++ b/VMS.h Fri Nov 12 08:42:25 2010 -0800 3.3 @@ -330,25 +330,25 @@ 3.4 void 3.5 VMS__suspend_procr( VirtProcr *callingPr ); 3.6 3.7 -inline void 3.8 + void 3.9 VMS__add_sem_request_in_mallocd_VMSReqst( void *semReqData, VirtProcr *callingPr ); 3.10 3.11 -inline void 3.12 + void 3.13 VMS__send_sem_request( void *semReqData, VirtProcr *callingPr ); 3.14 3.15 void 3.16 VMS__send_create_procr_req( void *semReqData, VirtProcr *reqstingPr ); 3.17 3.18 -void inline 3.19 +void 3.20 VMS__send_dissipate_req( VirtProcr *prToDissipate ); 3.21 3.22 -inline void 3.23 + void 3.24 VMS__send_VMSSem_request( void *semReqData, VirtProcr *callingPr ); 3.25 3.26 VMSReqst * 3.27 VMS__take_next_request_out_of( VirtProcr *procrWithReq ); 3.28 3.29 -inline void * 3.30 + void * 3.31 VMS__take_sem_reqst_from( VMSReqst *req ); 3.32 3.33 //======================== STATS ======================
4.1 --- a/probes.c Fri Nov 12 07:36:01 2010 -0800 4.2 +++ b/probes.c Fri Nov 12 08:42:25 2010 -0800 4.3 @@ -17,7 +17,7 @@ 4.4 4.5 //================================ STATS ==================================== 4.6 4.7 -inline TSCount getTSCount() 4.8 + TSCount getTSCount() 4.9 { unsigned int low, high; 4.10 TSCount out; 4.11
5.1 --- a/probes.h Fri Nov 12 07:36:01 2010 -0800 5.2 +++ b/probes.h Fri Nov 12 08:42:25 2010 -0800 5.3 @@ -56,7 +56,7 @@ 5.4 //TODO: change freq for each machine 5.5 #define TSCOUNT_FREQ 3180000000 5.6 5.7 -inline TSCount getTSCount(); 5.8 + TSCount getTSCount(); 5.9 5.10 5.11 //======================== Probes =============================
6.1 --- a/vmalloc.c Fri Nov 12 07:36:01 2010 -0800 6.2 +++ b/vmalloc.c Fri Nov 12 08:42:25 2010 -0800 6.3 @@ -24,7 +24,7 @@ 6.4 * 6.5 *The end of the list is identified by next chunk being NULL, as usual. 6.6 */ 6.7 -void inline 6.8 +void 6.9 add_chunk_to_free_list( MallocProlog *chunk, MallocProlog *listHead ) 6.10 { 6.11 chunk->nextChunkInFreeList = listHead->nextChunkInFreeList; 6.12 @@ -50,7 +50,7 @@ 6.13 int32 amountExtra, foundElemIsTopOfHeap, sizeConsumed,sizeOfFound; 6.14 6.15 //step up the size to be aligned at 16-byte boundary, prob better ways 6.16 - sizeRequested = ((sizeRequested + 16) >> 4) << 4; 6.17 + sizeRequested = ((sizeRequested + 15) >> 4) << 4; 6.18 currElem = (_VMSMasterEnv->freeListHead)->nextChunkInFreeList; 6.19 6.20 while( currElem != NULL )
