diff --git a/CMakeLists.txt b/CMakeLists.txt index a1b64aec2..e59535788 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,9 +25,6 @@ include(AwsSanitizers) include(AwsThreadAffinity) include(AwsThreadName) include(CTest) -include(AwsCRuntime) - -aws_determine_local_c_runtime(AWS_C_RUNTIME) set(GENERATED_ROOT_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated") set(GENERATED_INCLUDE_DIR "${GENERATED_ROOT_DIR}/include") diff --git a/source/posix/thread.c b/source/posix/thread.c index dfa18ebb1..f80e9acd3 100644 --- a/source/posix/thread.c +++ b/source/posix/thread.c @@ -276,7 +276,6 @@ int aws_thread_launch( goto cleanup; } } -#ifdef AWS_C_RUNTIME_MUSL if (!options->stack_size) { size_t stack_size; attr_return = pthread_attr_getstacksize(attributes_ptr, &stack_size); @@ -284,14 +283,13 @@ int aws_thread_launch( goto cleanup; } - if (stack_size < 2 * 1024 * 1024) { - attr_return = pthread_attr_setstacksize(attributes_ptr, 2 * 1024 * 1024); + if (stack_size < 1 * 1024 * 1024) { + attr_return = pthread_attr_setstacksize(attributes_ptr, 1 * 1024 * 1024); if (attr_return) { goto cleanup; } } -#endif /* AFAIK you can't set thread affinity on apple platforms, and it doesn't really matter since all memory * NUMA or not is setup in interleave mode.