The following patch resolves a build error and accounts for no cxa_thread_atexit_impl on z/OS. It avoids using thread since thread-local storage is not supported. It should be noted that the fallback implementation uses TLS, which is also not supported on z/OS.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM,
ideally we should have macro for __thread which would define to nothing for z/OS.
Comment Actions
How is this code going to be correct if there is no thread-local storage? z/OS does support multiple threads, so does this mean that this is now a race condition?
libcxxabi/src/cxa_thread_atexit.cpp | ||
---|---|---|
25–28 | Why doesn't that handle the z/OS case? |
Why doesn't that handle the z/OS case?