Skip to content

Commit

Permalink
remove musl check
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jul 23, 2024
1 parent beda1bb commit 7ad465b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 2 additions & 4 deletions source/posix/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,22 +276,20 @@ 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);
if (attr_return) {
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.
Expand Down

0 comments on commit 7ad465b

Please sign in to comment.