| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] ensure tls dtors are called in main thread (#133641) This is a part of allocator patch since I want to make sure the TLS for allocators are correctly handled. TLS dtors are not invoked on exit previously. This departures from major libc implementations. This PR fixes the issue by aligning the behavior with bionic. https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/bionic/exit.cpp I believe the finalization order is also consistent with glibc now: On main thread exiting: - pthread_key dtors are not called (unless exiting with pthread_exit) - __cxa based tls dtors are called - ::__cxa_atexit and ::atexit dtors are called - .fini dtors are called  | 11 个月前 | |
| 9 个月前 | ||
[libc] Add -Wextra for libc tests (#153321) RE apply https://github.com/llvm/llvm-project/pull/133643/commits#top | 10 个月前 | |
[libc] Add -Wextra for libc tests (#153321) RE apply https://github.com/llvm/llvm-project/pull/133643/commits#top | 10 个月前 | |
[libc][stdlib] Simplify getenv_test by using strcmp instead of custom helper (#163055) [libc][stdlib] Simplify getenv_test by using inline_strcmp instead of custom helper Replace the custom my_streq helper function with LLVM libc's inline_strcmp utility from src/string/memory_utils/inline_strcmp.h. Changes: - Remove 18-line custom my_streq implementation - Use inline_strcmp with a simple comparator lambda for string comparisons - Replace my_streq(..., nullptr) checks with direct == nullptr comparisons - Maintain identical test coverage while reducing code duplication Benefits: - Uses existing, well-tested LLVM libc infrastructure - Clearer test assertions with standard comparison functions - More concise code (reduced from ~48 to ~33 lines) - Consistent with LLVM libc coding practices The test continues to verify: - Empty string handling - Invalid name handling ('=') - Missing environment variable queries - Correct retrieval of existing variables (FRANCE, GERMANY, PATH) - Partial name matching behavior (FRANC vs FRANCE, FRANCE1 vs FRANCE) | 9 个月前 | |
[libc] Add -Wextra for libc tests (#153321) RE apply https://github.com/llvm/llvm-project/pull/133643/commits#top | 10 个月前 | |
[libc] Add -Wextra for libc tests (#153321) RE apply https://github.com/llvm/llvm-project/pull/133643/commits#top | 10 个月前 | |
[libc] Add a simple implementation of the posix_spawn function. The implementation currently ignores all spawn attributes. Support for them will be added in future changes. A simple allocator for integration tests has been added so that the integration test for posix_spawn can use the posix_spawn_file_actions_add* functions. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D135752 | 3 年前 |