DescriptionNon-SFI mode: Use clone() instead of pthread_create()
This is a refactor to avoid using pthread_create when creating new
threads in non-SFI mode. This is a first step towards implementing
asynchronous signals. It also means that we can now use the provided
|stack| argument to the |thread_create| IRT call, which should improve
memory usage.
In ARC, this saves 26MB of virtual memory and 1MB of resident memory.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=4065
TEST=git try
Committed: https://chromium.googlesource.com/native_client/src/native_client/+/e3168db25bbb64309eca9b9a1d83b86bf8cfb7e4
Patch Set 1 #Patch Set 2 : Fixed git try failures #Patch Set 3 : Remove __linux__ #ifdefs #Patch Set 4 : Fixed compilation errors #
Total comments: 8
Patch Set 5 : Addressed feedback #
Messages
Total messages: 16 (6 generated)
|