Changeset 72a3aff


Ignore:
Timestamp:
Dec 17, 2020, 10:33:55 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
7a70fb2
Parents:
72b1800
Message:

restore the the protection of the heap on destroy pthread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/startup.cfa

    r72b1800 r72a3aff  
    727727                }
    728728        #else
     729                __cfaabi_dbg_debug_do(
     730                        // pthread has no mechanism to create the guard page in user supplied stack.
     731                        if ( mprotect( stack, __page_size, PROT_READ | PROT_WRITE ) == -1 ) {
     732                                abort( "mprotect : internal error, mprotect failure, error(%d) %s.", errno, strerror( errno ) );
     733                        } // if
     734                );
    729735                free( stack );
    730736        #endif
Note: See TracChangeset for help on using the changeset viewer.