Changeset 15d248e
- Timestamp:
- Jan 23, 2018, 1:12:35 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 764b4b2, b6838214
- Parents:
- 84e8423 (diff), 81e1f32 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Waitfor.cc
r84e8423 r15d248e 507 507 new ListInit({ 508 508 new SingleInit( new AddressExpr( new VariableExpr( index ) ) ), 509 new SingleInit( new VariableExpr( acceptables ) ), 510 new SingleInit( new ConstantExpr( Constant::from_ulong( count ) ) ) 509 new ListInit({ 510 new SingleInit( new VariableExpr( acceptables ) ), 511 new SingleInit( new ConstantExpr( Constant::from_ulong( count ) ) ) 512 }) 511 513 }) 512 514 ); -
src/benchmark/Makefile.am
r84e8423 r15d248e 198 198 199 199 waitfor-cfa1$(EXEEXT): 200 ${CC} schedext/cfa1.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}200 @${CC} schedext/cfa1.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 201 201 202 202 waitfor-cfa2$(EXEEXT): -
src/benchmark/Makefile.in
r84e8423 r15d248e 607 607 608 608 waitfor-cfa1$(EXEEXT): 609 ${CC} schedext/cfa1.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}609 @${CC} schedext/cfa1.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} 610 610 611 611 waitfor-cfa2$(EXEEXT): -
src/libcfa/concurrency/preemption.c
r84e8423 r15d248e 300 300 // Check if it is safe to preempt here 301 301 if( !preemption_ready() ) { return; } 302 303 // __cfaabi_dbg_print_buffer_decl(" KERNEL: preempting core %p (%p).\n", this_processor, this_thread); 302 304 303 305 preemption_in_progress = true; // Sync flag : prevent recursive calls to the signal handler -
src/tests/.expect/alloc-ERROR.txt
r84e8423 r15d248e 1 1 alloc.c:264:1 error: No reasonable alternatives for expression Applying untyped: 2 Name: ?=? 3 ...to: 4 Name: p 5 Applying untyped: 6 Name: realloc 7 ...to: 8 Name: stp 9 Applying untyped: 10 Name: ?*? 11 ...to: 12 Name: dim 13 Sizeof Expression on: Applying untyped: 14 Name: *? 15 ...to: 16 Name: stp 17 18 19 20 21 alloc.c:265:1 error: No reasonable alternatives for expression Applying untyped: 2 22 Name: ?=? 3 23 ...to: … … 19 39 20 40 21 alloc.c:26 5:1 error: No reasonable alternatives for expression Applying untyped:41 alloc.c:266:1 error: No reasonable alternatives for expression Applying untyped: 22 42 Name: ?=? 23 43 ...to: … … 30 50 31 51 32 alloc.c:26 6:1 error: No reasonable alternatives for expression Applying untyped:52 alloc.c:267:1 error: No reasonable alternatives for expression Applying untyped: 33 53 Name: ?=? 34 54 ...to: -
src/tests/.expect/alloc.txt
r84e8423 r15d248e 60 60 pointer arithmetic 0 61 61 CFA deep malloc 0xdeadbeef 62 63 SHOULD FAIL -
src/tests/alloc.c
r84e8423 r15d248e 10 10 // Created On : Wed Feb 3 07:56:22 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Nov 24 23:06:42 201713 // Update Count : 3 1912 // Last Modified On : Mon Jan 22 21:26:40 2018 13 // Update Count : 326 14 14 // 15 15 … … 32 32 // allocation, non-array types 33 33 34 // int & r = malloc();34 // int & r = malloc(); 35 35 // r = 0xdeadbeef; 36 36 // printf( "C malloc %#x\n", r ); 37 37 // free( &r ); 38 38 39 p = (int *) (void *)malloc( sizeof(*p) );// C malloc, type unsafe39 p = (int *)malloc( sizeof(*p) ); // C malloc, type unsafe 40 40 *p = 0xdeadbeef; 41 41 printf( "C malloc %#x\n", *p ); … … 88 88 printf( "\n" ); 89 89 90 p = (int *) (void *)realloc( p, dim * sizeof(*p) );// C realloc90 p = (int *)realloc( p, dim * sizeof(*p) ); // C realloc 91 91 for ( int i = 0; i < dim; i += 1 ) { p[i] = 0xdeadbeef; } 92 92 printf( "C realloc\n" ); … … 259 259 free( p ); 260 260 261 #ifdef ERR1 261 262 stp = malloc(); 262 263 printf( "\nSHOULD FAIL\n" ); 263 #ifdef ERR1 264 p = alloc( stp, dim * sizeof( *stp) );264 p = realloc( stp, dim * sizeof( *stp ) ); 265 p = alloc( stp, dim * sizeof( *stp ) ); 265 266 p = memset( stp, 10 ); 266 267 p = memcpy( &st1, &st );
Note: See TracChangeset
for help on using the changeset viewer.