- File:
-
- 1 edited
-
libcfa/src/concurrency/coroutine.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/coroutine.cfa
rdd92fe9 r97229d6 10 10 // Created On : Mon Nov 28 12:27:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Dec 15 12:06:04 202013 // Update Count : 2 312 // Last Modified On : Fri Oct 23 23:05:24 2020 13 // Update Count : 22 14 14 // 15 15 … … 88 88 static const size_t MinStackSize = 1000; 89 89 extern size_t __page_size; // architecture pagesize HACK, should go in proper runtime singleton 90 extern int __map_prot;91 90 92 91 void __stack_prepare( __stack_info_t * this, size_t create_size ); … … 207 206 __cfaabi_dbg_debug_do( 208 207 storage = (char*)(storage) - __page_size; 209 if ( mprotect( storage, __page_size, __map_prot) == -1 ) {208 if ( mprotect( storage, __page_size, PROT_READ | PROT_WRITE ) == -1 ) { 210 209 abort( "(coStack_t *)%p.^?{}() : internal error, mprotect failure, error(%d) %s.", &this, errno, strerror( errno ) ); 211 210 }
Note:
See TracChangeset
for help on using the changeset viewer.