Now that __cxa_get_globals is unconditionally using TLS (if we support
threads), it's equivalent to __cxa_get_globals_fast, and we don't need
to check if the return value of the latter is null. Update the test to
check this property as well.
Details
- Reviewers
MaskRay - Group Reviewers
Restricted Project
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
libcxxabi/test/test_exception_storage.pass.cpp | ||
---|---|---|
31 | D138460 was originally stacked under D138461, and D138461 is what guaranteed that __cxa_get_globals_fast would be non-null even if you called it on a thread before __cxa_get_globals, so it wasn't correct to make the change then. It could be folded into D138460 now (since D138461 landed before it), but I felt it made more sense to keep it here. This change is the follow-up to D138461 that tweaks the rest of the code to rely on __cxa_get_globals_fast never returning non-null, and so I wanted the test for that specific functionality to also live here. |
I checked every calls site of __cxa_get_globals_fast and confirm that this is comprehenstive.
libcxxabi/test/test_exception_storage.pass.cpp | ||
---|---|---|
31 | Ah, right. Thanks for the description. |
The adjustment should be merged into D138460