Changes in / [a6e0e4c:b3a0df6]
- Files:
-
- 5 edited
-
Jenkins/FullBuild (modified) (4 diffs)
-
benchmark/io/http/main.cfa (modified) (1 diff)
-
libcfa/src/concurrency/coroutine.hfa (modified) (1 diff)
-
libcfa/src/concurrency/io/setup.cfa (modified) (6 diffs)
-
libcfa/src/heap.cfa (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
ra6e0e4c rb3a0df6 8 8 def err = null 9 9 10 final scmVars = checkout scm11 final commitId = scmVars.GIT_COMMIT12 13 10 try { 14 11 //Wrap build to add timestamp to command line … … 16 13 17 14 stage('Build') { 15 16 results = [null, null] 18 17 19 18 parallel ( … … 32 31 33 32 stage('Package') { 34 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number)]33 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: gitRefNewValue), string(name: 'Build', value: currentBuild.number)] 35 34 } 36 35 } … … 103 102 } 104 103 104 //Helper routine to collect information about the git history 105 def collect_git_info() { 106 107 //create the temporary output directory in case it doesn't already exist 108 def out_dir = pwd tmp: true 109 sh "mkdir -p ${out_dir}" 110 111 //parse git logs to find what changed 112 dir("../Cforall_Full_Build@script") { 113 sh "git reflog > ${out_dir}/GIT_COMMIT" 114 } 115 git_reflog = readFile("${out_dir}/GIT_COMMIT") 116 gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1] 117 gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2] 118 } 119 105 120 //=========================================================================================================== 106 121 //Routine responsible of sending the email notification once the build is completed -
benchmark/io/http/main.cfa
ra6e0e4c rb3a0df6 75 75 address.sin_port = htons( options.socket.port ); 76 76 77 int waited = 0; 78 for() { 79 ret = bind( server_fd, (struct sockaddr *)&address, sizeof(address) ); 80 if(ret < 0) { 81 if(errno == 98) { 82 if(waited == 0) { 83 printf("Waiting for port\n"); 84 } else { 85 printf("\r%d", waited); 86 fflush(stdout); 87 } 88 waited ++; 89 sleep( 1`s ); 90 continue; 91 } 92 abort( "bind error: (%d) %s\n", (int)errno, strerror(errno) ); 93 } 94 break; 77 ret = bind( server_fd, (struct sockaddr *)&address, sizeof(address) ); 78 if(ret < 0) { 79 abort( "bind error: (%d) %s\n", (int)errno, strerror(errno) ); 95 80 } 96 81 -
libcfa/src/concurrency/coroutine.hfa
ra6e0e4c rb3a0df6 144 144 145 145 if( unlikely(dst->context.SP == 0p) ) { 146 active_thread()->curr_cor = dst; 146 147 __stack_prepare(&dst->stack, 65000); 147 148 __cfactx_start(main, dst, cor, __cfactx_invoke_coroutine); 149 active_thread()->curr_cor = src; 148 150 } 149 151 -
libcfa/src/concurrency/io/setup.cfa
ra6e0e4c rb3a0df6 17 17 #define _GNU_SOURCE /* See feature_test_macros(7) */ 18 18 19 #if defined(__CFA_DEBUG__)20 // #define __CFA_DEBUG_PRINT_IO__21 // #define __CFA_DEBUG_PRINT_IO_CORE__22 #endif23 24 19 #include "io/types.hfa" 25 20 #include "kernel.hfa" … … 116 111 117 112 void __kernel_io_startup(void) { 118 __cfa dbg_print_safe(io_core,"Kernel : Creating EPOLL instance\n" );113 __cfaabi_dbg_print_safe( "Kernel : Creating EPOLL instance\n" ); 119 114 120 115 iopoll.epollfd = epoll_create1(0); … … 123 118 } 124 119 125 __cfa dbg_print_safe(io_core,"Kernel : Starting io poller thread\n" );120 __cfaabi_dbg_print_safe( "Kernel : Starting io poller thread\n" ); 126 121 127 122 iopoll.run = true; … … 146 141 // Io polling is now fully stopped 147 142 148 __cfa dbg_print_safe(io_core,"Kernel : IO poller stopped\n" );143 __cfaabi_dbg_print_safe( "Kernel : IO poller stopped\n" ); 149 144 } 150 145 … … 154 149 id.id = doregister(&id); 155 150 __cfaabi_tls.this_proc_id = &id; 156 __cfa dbg_print_safe(io_core,"Kernel : IO poller thread starting\n" );151 __cfaabi_dbg_print_safe( "Kernel : IO poller thread starting\n" ); 157 152 158 153 // Block signals to control when they arrive … … 189 184 } 190 185 191 __cfa dbg_print_safe(io_core,"Kernel : IO poller thread stopping\n" );186 __cfaabi_dbg_print_safe( "Kernel : IO poller thread stopping\n" ); 192 187 unregister(&id); 193 188 return 0p; -
libcfa/src/heap.cfa
ra6e0e4c rb3a0df6 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Dec 11 07:36:34202013 // Update Count : 9 7012 // Last Modified On : Mon Sep 7 22:17:46 2020 13 // Update Count : 957 14 14 // 15 15 … … 464 464 } // headers 465 465 466 #ifdef __CFA_DEBUG__467 #if __SIZEOF_POINTER__ == 4468 #define MASK 0xdeadbeef469 #else470 #define MASK 0xdeadbeefdeadbeef471 #endif472 #define STRIDE size_t473 474 static void * Memset( void * addr, STRIDE size ) { // debug only475 if ( size % sizeof(STRIDE) != 0 ) abort( "Memset() : internal error, size %zd not multiple of %zd.", size, sizeof(STRIDE) );476 if ( (STRIDE)addr % sizeof(STRIDE) != 0 ) abort( "Memset() : internal error, addr %p not multiple of %zd.", addr, sizeof(STRIDE) );477 478 STRIDE * end = (STRIDE *)addr + size / sizeof(STRIDE);479 for ( STRIDE * p = (STRIDE *)addr; p < end; p += 1 ) *p = MASK;480 return addr;481 } // Memset482 #endif // __CFA_DEBUG__483 484 466 #define NO_MEMORY_MSG "insufficient heap memory available for allocating %zd new bytes." 485 467 … … 501 483 #ifdef __CFA_DEBUG__ 502 484 // Set new memory to garbage so subsequent uninitialized usages might fail. 503 //memset( (char *)heapEnd + heapRemaining, '\377', increase ); 504 Memset( (char *)heapEnd + heapRemaining, increase ); 485 memset( (char *)heapEnd + heapRemaining, '\377', increase ); 505 486 #endif // __CFA_DEBUG__ 506 487 rem = heapRemaining + increase - size; … … 576 557 #ifdef __CFA_DEBUG__ 577 558 // Set new memory to garbage so subsequent uninitialized usages might fail. 578 //memset( block, '\377', tsize ); 579 Memset( block, tsize ); 559 memset( block, '\377', tsize ); 580 560 #endif // __CFA_DEBUG__ 581 561 block->header.kind.real.blockSize = tsize; // storage size for munmap … … 626 606 #ifdef __CFA_DEBUG__ 627 607 // Set free memory to garbage so subsequent usages might fail. 628 //memset( ((HeapManager.Storage *)header)->data, '\377', freeElem->blockSize - sizeof( HeapManager.Storage ) ); 629 Memset( ((HeapManager.Storage *)header)->data, freeElem->blockSize - sizeof( HeapManager.Storage ) ); 608 memset( ((HeapManager.Storage *)header)->data, '\377', freeElem->blockSize - sizeof( HeapManager.Storage ) ); 630 609 #endif // __CFA_DEBUG__ 631 610 … … 956 935 header->kind.real.size = size; // reset allocation size 957 936 if ( unlikely( ozfill ) && size > osize ) { // previous request zero fill and larger ? 958 memset( (char *)oaddr + osize, '\0', size - osize ); // initialize added storage937 memset( (char *)oaddr + osize, (int)'\0', size - osize ); // initialize added storage 959 938 } // if 960 939 return oaddr; … … 981 960 header->kind.real.blockSize |= 2; // mark new request as zero filled 982 961 if ( size > osize ) { // previous request larger ? 983 memset( (char *)naddr + osize, '\0', size - osize ); // initialize added storage962 memset( (char *)naddr + osize, (int)'\0', size - osize ); // initialize added storage 984 963 } // if 985 964 } // if … … 1348 1327 header->kind.real.blockSize |= 2; // mark new request as zero filled 1349 1328 if ( size > osize ) { // previous request larger ? 1350 memset( (char *)naddr + osize, '\0', size - osize ); // initialize added storage1329 memset( (char *)naddr + osize, (int)'\0', size - osize ); // initialize added storage 1351 1330 } // if 1352 1331 } // if
Note:
See TracChangeset
for help on using the changeset viewer.