Changeset ed235b6 for src/libcfa/concurrency/coroutine.c
- Timestamp:
- Sep 18, 2017, 11:02:18 AM (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:
- 8024bc8
- Parents:
- c935c3a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutine.c
rc935c3a red235b6 74 74 } 75 75 76 void ^?{}(coStack_t & this) {77 if ( ! this.userStack ) {76 void ^?{}(coStack_t & this) { 77 if ( ! this.userStack && this.storage ) { 78 78 LIB_DEBUG_DO( 79 79 if ( mprotect( this.storage, pageSize, PROT_READ | PROT_WRITE ) == -1 ) { … … 122 122 //TEMP HACK do this on proper kernel startup 123 123 if(pageSize == 0ul) pageSize = sysconf( _SC_PAGESIZE ); 124 125 LIB_DEBUG_PRINT_SAFE("FRED"); 124 126 125 127 size_t cxtSize = libCeiling( sizeof(machine_context_t), 8 ); // minimum alignment
Note: See TracChangeset
for help on using the changeset viewer.